qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] monitor: Plug memory leak on QMP error
@ 2015-10-29 11:15 Markus Armbruster
  2015-10-29 14:31 ` Eric Blake
  2015-10-29 15:41 ` Luiz Capitulino
  0 siblings, 2 replies; 6+ messages in thread
From: Markus Armbruster @ 2015-10-29 11:15 UTC (permalink / raw)
  To: qemu-devel; +Cc: lcapitulino

Leak introduced in commit 8a4f501..710aec9, v2.4.0.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
---
 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

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-10-30  7:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-29 11:15 [Qemu-devel] [PATCH] monitor: Plug memory leak on QMP error Markus Armbruster
2015-10-29 14:31 ` Eric Blake
2015-10-29 15:41 ` Luiz Capitulino
2015-10-29 16:23   ` Markus Armbruster
2015-10-29 19:06     ` Luiz Capitulino
2015-10-30  7:35       ` Markus Armbruster

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).