Skip to content

Commit f19377b

Browse files
Shannon ZhaoMichael Tokarev
authored andcommitted
hw/ppc/e500.c: Fix memory leak
Signed-off-by: Shannon Zhao <zhaoshenglong@huawei.com> Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
1 parent c18f855 commit f19377b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

hw/ppc/e500.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1030,6 +1030,7 @@ void ppce500_init(MachineState *machine, PPCE500Params *params)
10301030
exit(1);
10311031
}
10321032
}
1033+
g_free(filename);
10331034

10341035
/* Reserve space for dtb */
10351036
dt_base = (loadaddr + bios_size + DTC_LOAD_PAD) & ~DTC_PAD_MASK;

0 commit comments

Comments
 (0)