qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PULL 10/15] tests/fw_cfg: Free QFWCFG object after qtest h


From: Philippe Mathieu-Daudé
Subject: [Qemu-devel] [PULL 10/15] tests/fw_cfg: Free QFWCFG object after qtest has run
Date: Thu, 23 May 2019 14:43:15 +0200

We allocate the QFWCFG object previous to run the qtests,
free it once we are finished.

Signed-off-by: Li Qiang <address@hidden>
Message-Id: <address@hidden>
Reviewed-by: Philippe Mathieu-Daudé <address@hidden>
[PMD: Split patch, fill commit description]
Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
Reviewed-by: Laszlo Ersek <address@hidden>
---
 tests/fw_cfg-test.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/fw_cfg-test.c b/tests/fw_cfg-test.c
index 1c5103fe1c..a370ad5667 100644
--- a/tests/fw_cfg-test.c
+++ b/tests/fw_cfg-test.c
@@ -128,6 +128,7 @@ int main(int argc, char **argv)
 
     ret = g_test_run();
 
+    pc_fw_cfg_uninit(fw_cfg);
     qtest_quit(s);
 
     return ret;
-- 
2.20.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]