qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] hw/arm/virt: Fix corruption due to double free
@ 2015-04-02  3:07 Shannon Zhao
  2015-04-02  9:29 ` Peter Maydell
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Shannon Zhao @ 2015-04-02  3:07 UTC (permalink / raw)
  To: qemu-devel, peter.maydell, sw, arei.gonglei
  Cc: hangaohuai, shannon.zhaol, peter.huangpeng, christoffer.dall

From: Shannon Zhao <shannon.zhao@linaro.org>

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>
---
 hw/arm/virt.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/hw/arm/virt.c b/hw/arm/virt.c
index 7d082e2..febff22 100644
--- a/hw/arm/virt.c
+++ b/hw/arm/virt.c
@@ -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);
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-04-02 11:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-02  3:07 [Qemu-devel] [PATCH] hw/arm/virt: Fix corruption due to double free Shannon Zhao
2015-04-02  9:29 ` Peter Maydell
2015-04-02 10:51 ` Stefan Weil
2015-04-02 11:14 ` Gonglei
2015-04-02 11:50 ` Peter Maydell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).