diff options
author | Philippe Mathieu-Daudé <philmd@redhat.com> | 2019-05-21 18:38:24 +0200 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@redhat.com> | 2019-05-23 14:10:31 +0200 |
commit | 10b789b70cb78e7215f4efd2c568bec7b0b826a0 (patch) | |
tree | 825ebeb287a678ffcaad2edd9b8d86858faff9c6 /tests/fw_cfg-test.c | |
parent | 65461d124363d97b387337db9b970df60c31819d (diff) |
tests/fw_cfg: Free QFWCFG object after qtest has run
We allocate the QFWCFG object previous to run the qtests,
free it once we are finished.
Signed-off-by: Li Qiang <liq3ea@163.com>
Message-Id: <20190424140643.62457-2-liq3ea@163.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
[PMD: Split patch, fill commit description]
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Diffstat (limited to 'tests/fw_cfg-test.c')
-rw-r--r-- | tests/fw_cfg-test.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; |