monitor: Plug memory leak on QMP error
PATCH 1/1 monitor: Plug memory leak on QMP error
Leak introduced in commit 8a4f501..710aec9, v2.4.0.
--- monitor.c | 1 + 1 file changed, 1 insertion(+)
monitor.c +1 -0
@@ -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); }
Signature · 1 line
2.4.3
Quoted 6 lines · Markus Armbruster
Leak introduced in commit 8a4f501..710aec9, v2.4.0.
Signed-off-by Markus Armbruster <[email protected]>--- monitor.c | 1 + 1 file changed, 1 insertion(+)
Quoted 14 lines
monitor.c +1
-0@@ -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); }
Signature · 2 lines
Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
Quoted 3 lines · On Thu, 29 Oct 2015 12:15:09 +0100 Markus Armbruster <[email protected]> wrote:
Leak introduced in commit 8a4f501..710aec9, v2.4.0.
Signed-off-by Markus Armbruster <[email protected]>
I think this can go through your tree?
Quoted 16 lines
--- monitor.c | 1 + 1 file changed, 1 insertion(+)monitor.c +1
-0@@ -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); }
Quoted 8 lines · Luiz Capitulino
Quoted 3 lines · On Thu, 29 Oct 2015 12:15:09 +0100 Markus Armbruster <[email protected]> wrote:
Leak introduced in commit 8a4f501..710aec9, v2.4.0.
Signed-off-by Markus Armbruster <[email protected]>Reviewed-by Luiz Capitulino <[email protected]>
Thanks!
Quoted 1 line
I think this can go through your tree?
Yes, along with the json-streamer work.
Quoted 9 lines · On Thu, 29 Oct 2015 17:23:43 +0100 Markus Armbruster <[email protected]> wrote:
Quoted 7 lines · Luiz Capitulino
Quoted 3 lines · On Thu, 29 Oct 2015 12:15:09 +0100 Markus Armbruster <[email protected]> wrote:
Leak introduced in commit 8a4f501..710aec9, v2.4.0.
Signed-off-by Markus Armbruster <[email protected]>
Quoted 7 lines
Quoted 1 line
Reviewed-by Luiz Capitulino <[email protected]>Thanks!
Quoted 1 line
I think this can go through your tree?
Yes, along with the json-streamer work.
Do you need my review for that one? It's been ages that I don't look at that code, I'm not sure it's going to be that worthwhile.
Quoted 14 lines · Luiz Capitulino
Quoted 11 lines · On Thu, 29 Oct 2015 17:23:43 +0100 Markus Armbruster <[email protected]> wrote:
Quoted 8 lines · Luiz Capitulino
Quoted 3 lines · On Thu, 29 Oct 2015 12:15:09 +0100 Markus Armbruster <[email protected]> wrote:
Leak introduced in commit 8a4f501..710aec9, v2.4.0.
Signed-off-by Markus Armbruster <[email protected]>Reviewed-by Luiz Capitulino <[email protected]>
Quoted 8 lines
Quoted 5 lines
Thanks!
Quoted 1 line
I think this can go through your tree?
Yes, along with the json-streamer work.
Do you need my review for that one? It's been ages that I don't look at that code, I'm not sure it's going to be that worthwhile.
Review is always welcome, but "need" is too strong. qobject/json* isn't your code anyway, and I got Eric's review already.