From: Stefan Weil Date: Sat, 22 Jan 2011 12:02:46 +0000 (+0100) Subject: s390: Fix memory leak X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=9f953ca0b8ae71f4ea8112a3aac36454a2c4b907;p=qemu.git s390: Fix memory leak Signed-off-by: Stefan Weil Signed-off-by: Aurelien Jarno --- diff --git a/hw/s390-virtio.c b/hw/s390-virtio.c index f29b624e41..850422fee0 100644 --- a/hw/s390-virtio.c +++ b/hw/s390-virtio.c @@ -204,6 +204,7 @@ static void s390_init(ram_addr_t ram_size, bios_filename = qemu_find_file(QEMU_FILE_TYPE_BIOS, bios_name); bios_size = load_image(bios_filename, qemu_get_ram_ptr(ZIPL_LOAD_ADDR)); + qemu_free(bios_filename); if ((long)bios_size < 0) { hw_error("could not load bootloader '%s'\n", bios_name);