Skip to content

Commit

Permalink
hw/arm/virt: Fix corruption due to double free
Browse files Browse the repository at this point in the history
As 4de9a88(hw/arm/virt: Fix memory leak reported by Coverity)
and 6e05a12(arm: fix memory leak) both handle the memory leak
reported by Coverity, this cause qemu corruption due to
double free.

Signed-off-by: Shannon Zhao <zhaoshenglong@huawei.com>
Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org>
Reviewed-by: Stefan Weil <sw@weilnetz.de>
Message-id: 1427944026-8968-1-git-send-email-zhaoshenglong@huawei.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
  • Loading branch information
shannonz88 authored and pm215 committed Apr 2, 2015
1 parent 289494d commit c408d27
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion hw/arm/virt.c
Expand Up @@ -572,7 +572,6 @@ 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);
Expand Down

0 comments on commit c408d27

Please sign in to comment.