Skip to content

Commit

Permalink
monitor: Plug memory leak on QMP error
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Markus Armbruster committed Nov 26, 2015
1 parent 1a4dab8 commit 3a81a10
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions monitor.c
Expand Up @@ -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);
}
Expand Down

0 comments on commit 3a81a10

Please sign in to comment.