mirror of https://gitee.com/openkylin/qemu.git
s390: Fix memory leak
Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
parent
e98ccb3fbb
commit
9f953ca0b8
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue