[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 4/8] tests/qtest/bios-tables-test: Free tables at dump_aml_files
From: |
Fabiano Rosas |
Subject: |
[PULL 4/8] tests/qtest/bios-tables-test: Free tables at dump_aml_files |
Date: |
Thu, 2 Jan 2025 19:06:25 -0300 |
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é <philmd@linaro.org>
Message-Id: <20241209204427.17763-4-farosas@suse.de>
Signed-off-by: Fabiano Rosas <farosas@suse.de>
---
tests/qtest/bios-tables-test.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/tests/qtest/bios-tables-test.c b/tests/qtest/bios-tables-test.c
index 6035ec2c61..0a333ec435 100644
--- a/tests/qtest/bios-tables-test.c
+++ b/tests/qtest/bios-tables-test.c
@@ -292,6 +292,7 @@ static void dump_aml_files(test_data *data, bool rebuild)
g_free(aml_file);
}
+ free_test_data(&exp_data);
}
static bool create_tmp_asl(AcpiSdtTable *sdt)
--
2.35.3
- [PULL 0/8] QTest patches for 2025-01-02, Fabiano Rosas, 2025/01/02
- [PULL 1/8] tests/qtest/migration: Fix compile errors when CONFIG_UADK is set, Fabiano Rosas, 2025/01/02
- [PULL 3/8] tests/qtest/migration: Initialize buffer in probe_o_direct_support, Fabiano Rosas, 2025/01/02
- [PULL 2/8] tests/qtest/migration: Do proper cleanup in the dirty_limit test, Fabiano Rosas, 2025/01/02
- [PULL 6/8] tests/migration: Drop arch_[source|target], Fabiano Rosas, 2025/01/02
- [PULL 5/8] tests/qtest/virtio-iommu-test: Don't pass uninitialized data into qtest_memwrite, Fabiano Rosas, 2025/01/02
- [PULL 7/8] tests/qtest/migration: Re-enable postcopy tests, Fabiano Rosas, 2025/01/02
- [PULL 8/8] qtest/fw-cfg: remove compiled out code, Fabiano Rosas, 2025/01/02
- [PULL 4/8] tests/qtest/bios-tables-test: Free tables at dump_aml_files,
Fabiano Rosas <=
- Re: [PULL 0/8] QTest patches for 2025-01-02, Stefan Hajnoczi, 2025/01/03