Skip to content

Commit a475e5d

Browse files
author
Fabiano Rosas
committed
tests/qtest/bios-tables-test: Free tables at dump_aml_files
The dump_aml_files() function calls load_expected_aml() to allocate the tables but never frees it. Add the missing call to free_test_data(). Reviewed-by: Philippe Mathieu-Daudé <[email protected]> Message-Id: <[email protected]> Signed-off-by: Fabiano Rosas <[email protected]>
1 parent 117221a commit a475e5d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/qtest/bios-tables-test.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,7 @@ static void dump_aml_files(test_data *data, bool rebuild)
292292

293293
g_free(aml_file);
294294
}
295+
free_test_data(&exp_data);
295296
}
296297

297298
static bool create_tmp_asl(AcpiSdtTable *sdt)

0 commit comments

Comments
 (0)