aboutsummaryrefslogtreecommitdiff
path: root/hw/s390-virtio.c
diff options
context:
space:
mode:
authorStefan Weil <weil@mail.berlios.de>2011-01-22 13:02:46 +0100
committerAurelien Jarno <aurelien@aurel32.net>2011-02-20 18:23:07 +0100
commit9f953ca0b8ae71f4ea8112a3aac36454a2c4b907 (patch)
treeeda457f73fd63703e9ac9299c39282979f03894d /hw/s390-virtio.c
parente98ccb3fbba94d0b2165caabf7aeee370d4ce900 (diff)
downloadqemu-9f953ca0b8ae71f4ea8112a3aac36454a2c4b907.zip
qemu-9f953ca0b8ae71f4ea8112a3aac36454a2c4b907.tar.gz
qemu-9f953ca0b8ae71f4ea8112a3aac36454a2c4b907.tar.bz2
s390: Fix memory leak
Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'hw/s390-virtio.c')
-rw-r--r--hw/s390-virtio.c1
1 files changed, 1 insertions, 0 deletions
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);