summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Snow <jsnow@redhat.com>2014-08-04 17:11:21 -0400
committerStefan Hajnoczi <stefanha@redhat.com>2014-08-15 18:03:12 +0100
commitf3cdcbaee16d32b52d5015a8b1e8ddf5a27f7089 (patch)
treed866e5797e844c6e30a853c8ed1fc8a284fb08fe
parent86298845e127365e8a5b7419a5ee9039bbd1837f (diff)
downloadqemu-f3cdcbaee16d32b52d5015a8b1e8ddf5a27f7089.tar.gz
libqos: Correct memory leak
Fix a small memory leak inside of libqos, in the pc_alloc_init routine. Signed-off-by: John Snow <jsnow@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
-rw-r--r--tests/libqos/malloc-pc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/libqos/malloc-pc.c b/tests/libqos/malloc-pc.c
index db1496c667..63af60ac17 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;
}