From 9f953ca0b8ae71f4ea8112a3aac36454a2c4b907 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Sat, 22 Jan 2011 13:02:46 +0100 Subject: s390: Fix memory leak Signed-off-by: Stefan Weil Signed-off-by: Aurelien Jarno --- hw/s390-virtio.c | 1 + 1 file changed, 1 insertion(+) (limited to 'hw/s390-virtio.c') diff --git a/hw/s390-virtio.c b/hw/s390-virtio.c index f29b624..850422f 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); -- cgit v1.1