Commit 0529bc30b8 for qemu.org
commit 0529bc30b8a863c500472bab7668cac6492377e8
Author: Marc-André Lureau <marcandre.lureau@redhat.com>
Date: Thu Sep 3 15:53:30 2026 +0400
tests/launchupdate-test: fix fw_cfg leak
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Tested-by: Gerd Hoffmann <kraxel@redhat.com>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
diff --git a/tests/qtest/launchupdate-test.c b/tests/qtest/launchupdate-test.c
index ea35da81fe..beec902caa 100644
--- a/tests/qtest/launchupdate-test.c
+++ b/tests/qtest/launchupdate-test.c
@@ -148,6 +148,8 @@ static void check_error(void)
status = le64_to_cpu(launch_update.status);
/* should fail with LOAD_FAIL since it was not IGVM format */
g_assert_cmpint(status, ==, VM_LAUNCHUPDATE_LOAD_FAIL);
+
+ pc_fw_cfg_uninit(fw_cfg);
}
static int64_t get_image_size(const char *filename)