mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-28 04:21:50 -06:00
tests/qtest/aspeed_smc-test: Fix memory leaks
Link: 2025050917
.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>
This commit is contained in:
parent
d75cdf6883
commit
d09c0939c9
1 changed files with 5 additions and 0 deletions
|
@ -228,5 +228,10 @@ int main(int argc, char **argv)
|
||||||
unlink(ast2500_evb_data.tmp_path);
|
unlink(ast2500_evb_data.tmp_path);
|
||||||
unlink(ast2600_evb_data.tmp_path);
|
unlink(ast2600_evb_data.tmp_path);
|
||||||
unlink(ast1030_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;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue