From: Stefan Hajnoczi <stefanha@gmail.com>
To: Stefan Berger <stefanb@linux.vnet.ibm.com>
Cc: qemu-trivial@nongnu.org, Michael Roth <mdroth@linux.vnet.ibm.com>,
qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH v2] Fix some memory leaks in test-visitor-serialization
Date: Thu, 28 Mar 2013 14:32:49 +0100 [thread overview]
Message-ID: <20130328133249.GF22865@stefanha-thinkpad.redhat.com> (raw)
In-Reply-To: <515427E4.70402@linux.vnet.ibm.com>
On Thu, Mar 28, 2013 at 07:22:12AM -0400, Stefan Berger wrote:
> This patch fixes some of the memory leaks in
> test-visitor-serialization but not all of them.
>
> Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
>
> ---
> v1->v2: call qobject_decref(obj) earlier
>
> ---
> tests/test-visitor-serialization.c | 12 +++++++++++-
> 1 file changed, 11 insertions(+), 1 deletion(-)
>
> Index: qemu-git.pt/tests/test-visitor-serialization.c
> ===================================================================
> --- qemu-git.pt.orig/tests/test-visitor-serialization.c
> +++ qemu-git.pt/tests/test-visitor-serialization.c
> @@ -258,6 +258,7 @@ static void test_primitives(gconstpointe
> g_assert(pt_copy != NULL);
> if (pt->type == PTYPE_STRING) {
> g_assert_cmpstr(pt->value.string, ==, pt_copy->value.string);
> + g_free((char *)pt_copy->value.string);
> } else if (pt->type == PTYPE_NUMBER) {
> /* we serialize with %f for our reference visitors, so
> rather than fuzzy
> * floating math to test "equality", just compare the
> formatted values
The patch is line-wrapped. Please fix your mail client configuration,
git-am(1) refuses to apply automatically.
Thanks,
Stefan
next prev parent reply other threads:[~2013-03-28 13:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-28 11:22 [Qemu-devel] [PATCH v2] Fix some memory leaks in test-visitor-serialization Stefan Berger
2013-03-28 13:32 ` Stefan Hajnoczi [this message]
2013-03-28 14:12 ` [Qemu-devel] [REPOST] " Stefan Berger
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=20130328133249.GF22865@stefanha-thinkpad.redhat.com \
--to=stefanha@gmail.com \
--cc=mdroth@linux.vnet.ibm.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-trivial@nongnu.org \
--cc=stefanb@linux.vnet.ibm.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).