diff options
author | Markus Armbruster <armbru@redhat.com> | 2015-10-29 12:15:09 +0100 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2015-11-26 09:15:37 +0100 |
commit | 3a81a10179b702e031d8f84438193d83a64b4122 (patch) | |
tree | 9816fe71eb21991265dfd9e40fcf9f8dc2d84343 /monitor.c | |
parent | 1a4dab849d5d06191ab5e5850f6b8bfcad8ceb47 (diff) | |
download | qemu-3a81a10179b702e031d8f84438193d83a64b4122.tar.gz qemu-3a81a10179b702e031d8f84438193d83a64b4122.tar.bz2 qemu-3a81a10179b702e031d8f84438193d83a64b4122.zip |
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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); } |