From d71cdbfd540d91a6ae0005e59abfd782c424b07a Mon Sep 17 00:00:00 2001 From: Gonglei Date: Fri, 27 Feb 2015 15:50:13 +0800 Subject: sparc/leon3.c: fix memory leak Signed-off-by: Gonglei Signed-off-by: Michael Tokarev --- hw/sparc/leon3.c | 1 + 1 file changed, 1 insertion(+) (limited to 'hw/sparc') diff --git a/hw/sparc/leon3.c b/hw/sparc/leon3.c index 751392e137..e41ec0bf3a 100644 --- a/hw/sparc/leon3.c +++ b/hw/sparc/leon3.c @@ -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) { -- cgit v1.2.3