projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d0b65e
)
sparc/leon3.c: fix memory leak
author
Gonglei
<arei.gonglei@huawei.com>
Fri, 27 Feb 2015 07:50:13 +0000
(15:50 +0800)
committer
Michael Tokarev
<mjt@tls.msk.ru>
Tue, 10 Mar 2015 05:15:34 +0000
(08:15 +0300)
Signed-off-by: Gonglei <arei.gonglei@huawei.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/sparc/leon3.c
patch
|
blob
|
history
diff --git
a/hw/sparc/leon3.c
b/hw/sparc/leon3.c
index 751392e1378476f46f424181690021ca2edeaa2f..e41ec0bf3a6556fb354a068864142b75f25b732d 100644
(file)
--- 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) {