diff options
author | Stefan Weil <weil@mail.berlios.de> | 2011-01-22 13:02:45 +0100 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2011-02-20 18:23:07 +0100 |
commit | e98ccb3fbba94d0b2165caabf7aeee370d4ce900 (patch) | |
tree | 16c02cddc556021d1e145959b9f868ecf054f902 | |
parent | 386bbf45720b00496d5b9f9137359801c4e7ac0e (diff) |
ppc405: Fix memory leak
Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Acked-by: Andreas Färber <andreas.faerber@web.de>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
-rw-r--r-- | hw/ppc405_boards.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/ppc405_boards.c b/hw/ppc405_boards.c index 9abede7e05..ad2718102f 100644 --- a/hw/ppc405_boards.c +++ b/hw/ppc405_boards.c @@ -560,6 +560,7 @@ static void taihu_405ep_init(ram_addr_t ram_size, filename = qemu_find_file(QEMU_FILE_TYPE_BIOS, bios_name); if (filename) { bios_size = load_image(filename, qemu_get_ram_ptr(bios_offset)); + qemu_free(filename); } else { bios_size = -1; } |