From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34698) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZrlAp-0006gc-V0 for qemu-devel@nongnu.org; Thu, 29 Oct 2015 07:15:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZrlAm-0000Bp-NW for qemu-devel@nongnu.org; Thu, 29 Oct 2015 07:15:15 -0400 Received: from mx1.redhat.com ([209.132.183.28]:56080) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZrlAm-0000Bj-ID for qemu-devel@nongnu.org; Thu, 29 Oct 2015 07:15:12 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (Postfix) with ESMTPS id 6B180AB87A for ; Thu, 29 Oct 2015 11:15:11 +0000 (UTC) From: Markus Armbruster Date: Thu, 29 Oct 2015 12:15:09 +0100 Message-Id: <1446117309-15322-1-git-send-email-armbru@redhat.com> Subject: [Qemu-devel] [PATCH] monitor: Plug memory leak on QMP error List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: lcapitulino@redhat.com Leak introduced in commit 8a4f501..710aec9, v2.4.0. Signed-off-by: Markus Armbruster --- monitor.c | 1 + 1 file changed, 1 insertion(+) diff --git a/monitor.c b/monitor.c index 301a143..c59e85b 100644 --- a/monitor.c +++ b/monitor.c @@ -3862,6 +3862,7 @@ static void handle_qmp_command(JSONMessageParser *parser, QList *tokens) err_out: monitor_protocol_emitter(mon, data, local_err); qobject_decref(data); + error_free(local_err); QDECREF(input); QDECREF(args); } -- 2.4.3