From: stefano <opensource.dxs@aliyun.com>
To: Eric Blake <eblake@redhat.com>, armbru@redhat.com
Cc: zhongguocheng@huawei.com, dongxingshui@huawei.com, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH for-2.5] Avoid memory leak
Date: Thu, 26 Nov 2015 16:38:53 +0800 [thread overview]
Message-ID: <5656C51D.8070005@aliyun.com> (raw)
In-Reply-To: <56567FD0.2040105@redhat.com>
On 2015/11/26 11:43, Eric Blake wrote:
> On 11/25/2015 06:30 PM, dongxingshui wrote:
>> monitor.c: Avoid memory leak
>>
>> When 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.
>
> Reviewed-by: Eric Blake <eblake@redhat.com>
>
>>
>> Signed-off-by: dongxingshui <opensource.dxs@aliyun.com>
>
> 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.
Signed-off-by: Stefano Dong (董兴水) <opensource.dxs@aliyun.com>
>
> https://lists.gnu.org/archive/html/qemu-devel/2015-11/msg05208.html
>
>> ---
>> monitor.c | 1 +
>> 1 file changed, 1 insertion(+)
>>
>> diff --git a/monitor.c b/monitor.c
>> index e4cf34e..af6cfc5 100644
>> --- a/monitor.c
>> +++ b/monitor.c
>> @@ -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);
>>
>
next prev parent reply other threads:[~2015-11-26 8:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-26 1:30 [Qemu-devel] [PATCH] Avoid memory leak dongxingshui
2015-11-26 3:43 ` [Qemu-devel] [PATCH for-2.5] " Eric Blake
2015-11-26 8:38 ` stefano [this message]
2015-11-26 8:52 ` Markus Armbruster
2015-11-26 7:40 ` [Qemu-devel] [PATCH] " Markus Armbruster
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5656C51D.8070005@aliyun.com \
--to=opensource.dxs@aliyun.com \
--cc=armbru@redhat.com \
--cc=dongxingshui@huawei.com \
--cc=eblake@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=zhongguocheng@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.