Avoid memory leak
PATCH 1/1 Avoid memory leak
monitor.c: Avoid memory leak
When send a wrong qmp command, a memory leak occurs. Fix it.
--- monitor.c | 1 + 1 file changed, 1 insertion(+)
monitor.c +1 -0
@@ -3906,6 +3906,7 @@ static void handle_qmp_command(JSONMessageParser *parser, QList *tokens) err_out:monitor_protocol_emitter (mon, data, local_err); +error_free (local_err);qobject_decref (data);QDECREF (input);QDECREF (args);
Signature · 1 line
2.5.1.1
Quoted 3 lines · dongxingshui
monitor.c: Avoid memory leakWhen send a wrong qmp command, a memory leak occurs. Fix it.
Looks like the leak was introduced in 710aec9; would be worth amending the commit message to mention that.
Quoted 2 lines
Signed-off-by dongxingshui <[email protected]>
This looks like your first patch to qemu (at least I wasn't able to find anything from you via 'git log') - welcome to the community. I suspect that 'dongxingshui' is probably your login name; it doesn't give a Western reader like me an idea where to break into family and personal names. It's a bit nicer to use a 'Full Name' notation, or even to list your name in two forms (Latin and native UTF-8 characters); see this recent conversation:
https://lists.gnu.org/archive/html/qemu-devel/2015-11/msg05208.html
Quoted 17 lines
--- monitor.c | 1 + 1 file changed, 1 insertion(+)monitor.c +1
-0@@ -3906,6 +3906,7 @@ static void handle_qmp_command(JSONMessageParser *parser, QList *tokens) err_out:monitor_protocol_emitter (mon, data, local_err); +error_free (local_err);qobject_decref (data);QDECREF (input);QDECREF (args);
Signature · 2 lines
Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
Quoted 7 lines · Eric Blake
Quoted 3 lines · dongxingshui
monitor.c: Avoid memory leakWhen send a wrong qmp command, a memory leak occurs. Fix it.
Looks like the leak was introduced in 710aec9; would be worth amending the commit message to mention that.
Sorry! I didn't see the mailing list before. It has been fixed by Markus.
Quoted 6 lines
Reviewed-by Eric Blake <[email protected]>Quoted 2 lines
Signed-off-by dongxingshui <[email protected]>
Quoted 7 lines
This looks like your first patch to qemu (at least I wasn't able to find anything from you via 'git log') - welcome to the community. I suspect that 'dongxingshui' is probably your login name; it doesn't give a Western reader like me an idea where to break into family and personal names. It's a bit nicer to use a 'Full Name' notation, or even to list your name in two forms (Latin and native UTF-8 characters); see this recent conversation:
I'm pleased to join the community.
Thank you for your suggestion, i'll change my signed-off message and use the following one.
Quoted 21 lines
https://lists.gnu.org/archive/html/qemu-devel/2015-11/msg05208.html
Quoted 17 lines
--- monitor.c | 1 + 1 file changed, 1 insertion(+)monitor.c +1
-0@@ -3906,6 +3906,7 @@ static void handle_qmp_command(JSONMessageParser *parser, QList *tokens) err_out:monitor_protocol_emitter (mon, data, local_err); +error_free (local_err);qobject_decref (data);QDECREF (input);QDECREF (args);
Quoted 25 lines · stefano
Quoted 7 lines · Eric Blake
Quoted 3 lines · dongxingshui
monitor.c: Avoid memory leakWhen send a wrong qmp command, a memory leak occurs. Fix it.
Looks like the leak was introduced in 710aec9; would be worth amending the commit message to mention that.
Sorry! I didn't see the mailing list before. It has been fixed by Markus.
Quoted 6 lines
Reviewed-by Eric Blake <[email protected]>Quoted 2 lines
Signed-off-by dongxingshui <[email protected]>Quoted 7 lines
This looks like your first patch to qemu (at least I wasn't able to find anything from you via 'git log') - welcome to the community. I suspect that 'dongxingshui' is probably your login name; it doesn't give a Western reader like me an idea where to break into family and personal names. It's a bit nicer to use a 'Full Name' notation, or even to list your name in two forms (Latin and native UTF-8 characters); see this recent conversation:
Quoted 4 lines
I'm pleased to join the community.
Thank you for your suggestion, i'll change my signed-off message and use the following one.Signed-off-by Stefano Dong (董兴水) <[email protected]>
Looks good. Welcome!
Quoted 5 lines · dongxingshui
monitor.c: Avoid memory leakWhen send a wrong qmp command, a memory leak occurs. Fix it.
Signed-off-by dongxingshui <[email protected]>
Functionally the same as
http://lists.gnu.org/archive/html/qemu-devel/2015-10/msg06862.html
Message-Id: <[email protected]>
The delay getting that merged is entirely my fault. Thanks!