]> git.proxmox.com Git - qemu.git/blobdiff - hw/s390-virtio.c
s390: Fix memory leak
[qemu.git] / hw / s390-virtio.c
index f29b624e41e757c6a68f3786340228cfefcb2d16..850422fee07472ac08087dd18f33c872dff6d2d6 100644 (file)
@@ -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);