Commit 56603f5d12 for qemu.org

commit 56603f5d12951fbaab2bb8007ebdb212f165a508
Author: Fabiano Rosas <farosas@suse.de>
Date:   Fri Mar 6 09:01:12 2026 +0000

    tests/qtest/test-x86-cpuid-compat: Free allocated memory

    Free the test arguments after test execution.

    Signed-off-by: Fabiano Rosas <farosas@suse.de>
    Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
    Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
    Message-id: 20260302092225.4088227-9-peter.maydell@linaro.org

diff --git a/tests/qtest/test-x86-cpuid-compat.c b/tests/qtest/test-x86-cpuid-compat.c
index c534e764f8..be67631a85 100644
--- a/tests/qtest/test-x86-cpuid-compat.c
+++ b/tests/qtest/test-x86-cpuid-compat.c
@@ -65,6 +65,8 @@ static void test_cpuid_prop(const void *data)

     qobject_unref(value);
     g_free(path);
+    g_free((void *)args->cmdline);
+    g_free((void *)data);
 }

 static void add_cpuid_test(const char *name, const char *cpu,
@@ -161,6 +163,8 @@ static void test_feature_flag(const void *data)
     qobject_unref(present);
     qobject_unref(filtered);
     g_free(path);
+    g_free((void *)args->cmdline);
+    g_free((void *)data);
 }

 /*