qtest: bios-tables-test: fix a memory leak
PATCH 1/1 qtest: bios-tables-test: fix a memory leak
Fixes 5da7c35e25a("bios-tables-test: Add Q35/TPM-TIS test")
Signed-off-by Li Qiang <[email protected]>
--- tests/qtest/bios-tables-test.c | 1 + 1 file changed, 1 insertion(+)
tests/qtest/bios-tables-test.c +1 -0
@@ -924,6 +924,7 @@ static void test_acpi_tcg_tpm(const char *machine, const char *tpm_if,g_free (variant);g_free (tmp_path);g_free (tmp_dir_name); +g_free (args);free_test_data (&data);#else g_test_skip ("TPM disabled" );
Signature · 1 line
2.17.1
Hi Li,
Quoted 12 lines · Li Qiang
Fixes 5da7c35e25a("bios-tables-test: Add Q35/TPM-TIS test")Signed-off-by Li Qiang <[email protected]>--- tests/qtest/bios-tables-test.c | 1 + 1 file changed, 1 insertion(+)tests/qtest/bios-tables-test.c +0
-0
tests/qtest/bios-tables-test.c static void test_acpi_tcg_tpm(const char *machine, const char *tpm_if, · line 930
Quoted 7 lines
tests/qtest/bios-tables-test.c +1
-0@@ -924,6 +924,7 @@ static void test_acpi_tcg_tpm(const char *machine, const char *tpm_if,g_free (variant);g_free (tmp_path);g_free (tmp_dir_name); +g_free (args);free_test_data (&data);#else g_test_skip ("TPM disabled" );
Reviewed-by Eric Auger <[email protected]>
Thanks!
Eric
Quoted 2 lines · On Tue, 14 Jul 2020 08:35:36 -0700 Li Qiang <[email protected]> wrote:
Fixes 5da7c35e25a("bios-tables-test: Add Q35/TPM-TIS test")Signed-off-by Li Qiang <[email protected]>
Reviewed-by Igor Mammedov <[email protected]>
Quoted 16 lines
--- tests/qtest/bios-tables-test.c | 1 + 1 file changed, 1 insertion(+)tests/qtest/bios-tables-test.c +1
-0@@ -924,6 +924,7 @@ static void test_acpi_tcg_tpm(const char *machine, const char *tpm_if,g_free (variant);g_free (tmp_path);g_free (tmp_dir_name); +g_free (args);free_test_data (&data);#else g_test_skip ("TPM disabled" );