aboutsummaryrefslogtreecommitdiff
path: root/monitor.c
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2015-10-29 12:15:09 +0100
committerMarkus Armbruster <armbru@redhat.com>2015-11-26 09:15:37 +0100
commit3a81a10179b702e031d8f84438193d83a64b4122 (patch)
tree9816fe71eb21991265dfd9e40fcf9f8dc2d84343 /monitor.c
parent1a4dab849d5d06191ab5e5850f6b8bfcad8ceb47 (diff)
monitor: Plug memory leak on QMP error
Leak introduced in commit 8a4f501..710aec9, v2.4.0. Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <1446117309-15322-1-git-send-email-armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'monitor.c')
-rw-r--r--monitor.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/monitor.c b/monitor.c
index e4cf34e3cb..49073ac195 100644
--- a/monitor.c
+++ b/monitor.c
@@ -3907,6 +3907,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);
}