mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
arm: fix memory leak
Cc: Michael Tokarev <mjt@tls.msk.ru> Cc: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Gonglei <arei.gonglei@huawei.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
This commit is contained in:
parent
293811f6c1
commit
6e05a12f8f
4 changed files with 6 additions and 2 deletions
|
@ -552,7 +552,7 @@ static void create_flash(const VirtBoardInfo *vbi)
|
|||
char *nodename;
|
||||
|
||||
if (bios_name) {
|
||||
const char *fn;
|
||||
char *fn;
|
||||
|
||||
if (drive_get(IF_PFLASH, 0, 0)) {
|
||||
error_report("The contents of the first flash device may be "
|
||||
|
@ -565,6 +565,7 @@ static void create_flash(const VirtBoardInfo *vbi)
|
|||
error_report("Could not load ROM image '%s'", bios_name);
|
||||
exit(1);
|
||||
}
|
||||
g_free(fn);
|
||||
}
|
||||
|
||||
create_one_flash("virt.flash0", flashbase, flashsize);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue