Browse Source

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
master
Fabiano Rosas 4 weeks ago
committed by Peter Maydell
parent
commit
56603f5d12
  1. 4
      tests/qtest/test-x86-cpuid-compat.c

4
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);
}
/*

Loading…
Cancel
Save