Received: from eggs.gnu.org ([2001:4830:134:3::10]:50118) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XIKyq-0006HB-Qm for qemu-devel@nongnu.org; Fri, 15 Aug 2014 13:08:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XIKyj-0000HE-BD for qemu-devel@nongnu.org; Fri, 15 Aug 2014 13:07:56 -0400 Received: from mx1.redhat.com ([209.132.183.28]:2384) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XIKyj-0000H3-3m for qemu-devel@nongnu.org; Fri, 15 Aug 2014 13:07:49 -0400 From: Stefan Hajnoczi Date: Fri, 15 Aug 2014 18:06:27 +0100 Message-Id: <1408122422-13935-21-git-send-email-stefanha@redhat.com> In-Reply-To: <1408122422-13935-1-git-send-email-stefanha@redhat.com> References: <1408122422-13935-1-git-send-email-stefanha@redhat.com> Subject: [Qemu-devel] [PULL 20/55] libqos: Correct memory leak List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Peter Maydell , John Snow , Stefan Hajnoczi From: John Snow 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 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