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:
Gonglei 2015-02-27 15:50:13 +08:00 committed by Michael Tokarev
parent 9d0b65e6e8
commit d71cdbfd54

View file

@ -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) {