ppc405: Fix memory leak
authorStefan Weil <weil@mail.berlios.de>
Sat, 22 Jan 2011 12:02:45 +0000 (13:02 +0100)
committerAurelien Jarno <aurelien@aurel32.net>
Sun, 20 Feb 2011 17:23:07 +0000 (18:23 +0100)
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>
hw/ppc405_boards.c

index 9abede7e051cb50b9e8da6601b34817d87faa94e..ad2718102f8edc6194ea97b924243414f8c3a43f 100644 (file)
@@ -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;
         }