提交 18fc8055 编写于 作者: M Markus Armbruster 提交者: Paolo Bonzini

x86: Drop superfluous conditionals around g_free()

Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
Reviewed-by: NEric Blake <eblake@redhat.com>
Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
上级 18cd2c17
...@@ -204,9 +204,7 @@ static void old_pc_system_rom_init(MemoryRegion *rom_memory, bool isapc_ram_fw) ...@@ -204,9 +204,7 @@ static void old_pc_system_rom_init(MemoryRegion *rom_memory, bool isapc_ram_fw)
fprintf(stderr, "qemu: could not load PC BIOS '%s'\n", bios_name); fprintf(stderr, "qemu: could not load PC BIOS '%s'\n", bios_name);
exit(1); exit(1);
} }
if (filename) { g_free(filename);
g_free(filename);
}
/* map the last 128KB of the BIOS in ISA space */ /* map the last 128KB of the BIOS in ISA space */
isa_bios_size = bios_size; isa_bios_size = bios_size;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册