aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2017-02-05 14:48:20 +0400
committerMarc-André Lureau <marcandre.lureau@redhat.com>2017-03-01 11:51:04 +0400
commitf11dc27bcc031b9dc90ffd82c503b55f83c246ca (patch)
tree409d0bc1db88c238b598f7e45be5b445ea622c2d /tests
parent2c8f86961b6eaac705be21bc98299f5517eb0b6b (diff)
tests: fix bios-tables-test leak
The inside array should be free too. Spotted by ASAN. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/bios-tables-test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/bios-tables-test.c b/tests/bios-tables-test.c
index 54048050c0..d54018da73 100644
--- a/tests/bios-tables-test.c
+++ b/tests/bios-tables-test.c
@@ -144,7 +144,7 @@ static void free_test_data(test_data *data)
g_free(temp->asl_file);
}
- g_array_free(data->tables, false);
+ g_array_free(data->tables, true);
}
static uint8_t acpi_checksum(const uint8_t *data, int len)