From: John Snow Date: Mon, 4 Aug 2014 21:11:21 +0000 (-0400) Subject: libqos: Correct memory leak X-Git-Tag: v2.2.0-rc0~173^2~35 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f3cdcbaee16d32b52d5015a8b1e8ddf5a27f7089;p=thirdparty%2Fqemu.git 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 --- diff --git a/tests/libqos/malloc-pc.c b/tests/libqos/malloc-pc.c index db1496c6679..63af60ac17b 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; }