mirror of https://github.com/xemu-project/xemu.git
sparc/leon3.c: fix memory leak
Signed-off-by: Gonglei <arei.gonglei@huawei.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
This commit is contained in:
parent
9d0b65e6e8
commit
d71cdbfd54
|
@ -186,6 +186,7 @@ static void leon3_generic_hw_init(MachineState *machine)
|
|||
fprintf(stderr, "Can't read bios image %s\n", filename);
|
||||
exit(1);
|
||||
}
|
||||
g_free(filename);
|
||||
|
||||
/* Can directly load an application. */
|
||||
if (kernel_filename != NULL) {
|
||||
|
|
Loading…
Reference in New Issue