From: Eric Blake <eblake@redhat.com>
To: dongxingshui <opensource.dxs@aliyun.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: Wed, 25 Nov 2015 20:43:12 -0700 [thread overview]
Message-ID: <56567FD0.2040105@redhat.com> (raw)
In-Reply-To: <1448501448-5652-1-git-send-email-opensource.dxs@aliyun.com>
[-- Attachment #1: Type: text/plain, Size: 1465 bytes --]
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.
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:
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);
>
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]
next prev parent reply other threads:[~2015-11-26 3:43 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 ` Eric Blake [this message]
2015-11-26 8:38 ` [Qemu-devel] [PATCH for-2.5] " stefano
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=56567FD0.2040105@redhat.com \
--to=eblake@redhat.com \
--cc=armbru@redhat.com \
--cc=dongxingshui@huawei.com \
--cc=opensource.dxs@aliyun.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).