qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 20/28] libqos: Correct memory leak


From: John Snow
Subject: [Qemu-devel] [PATCH 20/28] libqos: Correct memory leak
Date: Mon, 7 Jul 2014 14:18:01 -0400

Fix a small memory leak inside of libqos, in the pc_alloc_init routine.

Signed-off-by: John Snow <address@hidden>
---
 tests/libqos/malloc-pc.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/libqos/malloc-pc.c b/tests/libqos/malloc-pc.c
index db1496c..63af60a 100644
--- a/tests/libqos/malloc-pc.c
+++ b/tests/libqos/malloc-pc.c
@@ -67,5 +67,8 @@ QGuestAllocator *pc_alloc_init(void)
     /* Respect PCI hole */
     s->end = MIN(ram_size, 0xE0000000);
 
+    /* clean-up */
+    g_free(fw_cfg);
+
     return &s->alloc;
 }
-- 
1.9.3




reply via email to

[Prev in Thread] Current Thread [Next in Thread]