summary refs log tree commit diff stats
path: root/tests/qtest/aspeed_smc-test.c
diff options
context:
space:
mode:
authorJamin Lin <jamin_lin@aspeedtech.com>2025-05-13 16:08:06 +0800
committerCédric Le Goater <clg@redhat.com>2025-05-25 23:39:11 +0200
commitd09c0939c97061fca0faa842184171f2f94b3339 (patch)
treecbb1861cf87b99c172cac494c34a54d5a67662d3 /tests/qtest/aspeed_smc-test.c
parentd75cdf6883fac728540798e42a8104d016ec762c (diff)
downloadfocaccia-qemu-d09c0939c97061fca0faa842184171f2f94b3339.tar.gz
focaccia-qemu-d09c0939c97061fca0faa842184171f2f94b3339.zip
tests/qtest/aspeed_smc-test: Fix memory leaks
Link: https://patchwork.kernel.org/project/qemu-devel/patch/20250509175047.26066-1-farosas@suse.de/

Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com>
Reviewed-by: Laurent Vivier <lvivier@redhat.com>
Link: https://lore.kernel.org/qemu-devel/20250513080806.1005996-1-jamin_lin@aspeedtech.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
Diffstat (limited to 'tests/qtest/aspeed_smc-test.c')
-rw-r--r--tests/qtest/aspeed_smc-test.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/qtest/aspeed_smc-test.c b/tests/qtest/aspeed_smc-test.c
index 4e1389385d..52a00e6f0a 100644
--- a/tests/qtest/aspeed_smc-test.c
+++ b/tests/qtest/aspeed_smc-test.c
@@ -228,5 +228,10 @@ int main(int argc, char **argv)
     unlink(ast2500_evb_data.tmp_path);
     unlink(ast2600_evb_data.tmp_path);
     unlink(ast1030_evb_data.tmp_path);
+    g_free(palmetto_data.tmp_path);
+    g_free(ast2500_evb_data.tmp_path);
+    g_free(ast2600_evb_data.tmp_path);
+    g_free(ast1030_evb_data.tmp_path);
+
     return ret;
 }