summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Maydell2015-04-02 11:52:14 +0200
committerPeter Maydell2015-04-02 13:11:07 +0200
commit11f10cf8057dd5392171da061381f6c890b1e21d (patch)
treea65bad55077819eb121c068630806e7280a2be46
parenthw/arm/virt: Fix corruption due to double free (diff)
downloadqemu-11f10cf8057dd5392171da061381f6c890b1e21d.tar.gz
qemu-11f10cf8057dd5392171da061381f6c890b1e21d.tar.xz
qemu-11f10cf8057dd5392171da061381f6c890b1e21d.zip
hw/arm/vexpress: Don't double-free flash filename
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
-rw-r--r--hw/arm/vexpress.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/hw/arm/vexpress.c b/hw/arm/vexpress.c
index dd045271b8..54dd9673aa 100644
--- a/hw/arm/vexpress.c
+++ b/hw/arm/vexpress.c
@@ -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