diff options
author | Gonglei | 2015-02-27 08:50:13 +0100 |
---|---|---|
committer | Michael Tokarev | 2015-03-10 06:15:34 +0100 |
commit | d71cdbfd540d91a6ae0005e59abfd782c424b07a (patch) | |
tree | 901ca21331f804239d4cc18a35e9ffc4a8be664a /hw/sparc | |
parent | nbd: fix resource leak (diff) | |
download | qemu-d71cdbfd540d91a6ae0005e59abfd782c424b07a.tar.gz qemu-d71cdbfd540d91a6ae0005e59abfd782c424b07a.tar.xz qemu-d71cdbfd540d91a6ae0005e59abfd782c424b07a.zip |
sparc/leon3.c: fix memory leak
Signed-off-by: Gonglei <arei.gonglei@huawei.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'hw/sparc')
-rw-r--r-- | hw/sparc/leon3.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) { |