From f3cdcbaee16d32b52d5015a8b1e8ddf5a27f7089 Mon Sep 17 00:00:00 2001 From: John Snow Date: Mon, 4 Aug 2014 17:11:21 -0400 Subject: libqos: Correct memory leak Fix a small memory leak inside of libqos, in the pc_alloc_init routine. Signed-off-by: John Snow Signed-off-by: Stefan Hajnoczi --- 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 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; } -- cgit v1.2.1