]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commitdiff
hw/arm/vexpress: Don't double-free flash filename
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 2 Apr 2015 09:52:14 +0000 (10:52 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 2 Apr 2015 11:11:07 +0000 (12:11 +0100)
Commits 6e05a12f8f7f and db25a1581 both attempt to fix the
same "failed to free memory containing flash filename" bug,
with the effect that when they were both applied we ended
up freeing the memory twice. Delete the spurious extra free.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Stefan Weil <sw@weilnetz.de>
Message-id: 1427968334-14527-1-git-send-email-peter.maydell@linaro.org

hw/arm/vexpress.c

index dd045271b8280c3920d1ed6f93f53bea05d53ad0..54dd9673aad989a188f43df59fbf6d9b22217855 100644 (file)
@@ -583,7 +583,6 @@ static void vexpress_common_init(MachineState *machine)
             error_report("Could not load ROM image '%s'", bios_name);
             exit(1);
         }
-        g_free(fn);
     }
 
     /* Motherboard peripherals: the wiring is the same but the