qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v2] e500: fix memory leak
@ 2015-02-28 10:08 arei.gonglei
  2015-02-28 10:13 ` Michael Tokarev
  0 siblings, 1 reply; 8+ messages in thread
From: arei.gonglei @ 2015-02-28 10:08 UTC (permalink / raw)
  To: qemu-devel; +Cc: qemu-trivial, Gonglei, mjt

From: Gonglei <arei.gonglei@huawei.com>

Signed-off-by: Gonglei <arei.gonglei@huawei.com>
---
v2: fix compilation complaint. (mjt)
---
 hw/ppc/e500.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/hw/ppc/e500.c b/hw/ppc/e500.c
index 7e17d18..c060b50 100644
--- a/hw/ppc/e500.c
+++ b/hw/ppc/e500.c
@@ -309,8 +309,10 @@ static int ppce500_load_device_tree(MachineState *machine,
 
         fdt = load_device_tree(filename, &fdt_size);
         if (!fdt) {
+            g_free(filename);
             goto out;
         }
+        g_free(filename);
         goto done;
     }
 
-- 
1.7.12.4

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

end of thread, other threads:[~2015-03-02  1:17 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-28 10:08 [Qemu-devel] [PATCH v2] e500: fix memory leak arei.gonglei
2015-02-28 10:13 ` Michael Tokarev
2015-02-28 10:18   ` Gonglei
2015-02-28 10:47     ` Michael Tokarev
2015-02-28 16:40   ` Paolo Bonzini
2015-02-28 16:47     ` Stefan Weil
2015-03-01 10:06       ` Paolo Bonzini
2015-03-02  1:17         ` Gonglei

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).