From 10b789b70cb78e7215f4efd2c568bec7b0b826a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Date: Tue, 21 May 2019 18:38:24 +0200 Subject: [PATCH] tests/fw_cfg: Free QFWCFG object after qtest has run MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We allocate the QFWCFG object previous to run the qtests, free it once we are finished. Signed-off-by: Li Qiang Message-Id: <20190424140643.62457-2-liq3ea@163.com> Reviewed-by: Philippe Mathieu-Daudé [PMD: Split patch, fill commit description] Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Laszlo Ersek --- 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;