From: Stefan Hajnoczi <stefanha@gmail.com>
To: "Michael S. Tsirkin" <mst@redhat.com>
Cc: qemu-devel@nongnu.org, Paolo Bonzini <pbonzini@redhat.com>,
Xiao Guangrong <guangrong.xiao@linux.intel.com>,
Igor Mammedov <imammedo@redhat.com>,
stefanha@redhat.com
Subject: Re: [Qemu-devel] [PATCH] nvdimm: fix memory leak in error code path
Date: Wed, 6 Jul 2016 16:52:11 +0100 [thread overview]
Message-ID: <20160706155211.GA944@stefanha-x1.localdomain> (raw)
In-Reply-To: <1467104806-3461-1-git-send-email-stefanha@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 921 bytes --]
On Tue, Jun 28, 2016 at 10:06:46AM +0100, Stefan Hajnoczi wrote:
> object_get_canonical_path_component() returns a heap-allocated string
> that must be freed using g_free().
>
> Reported-by: Paolo Bonzini <pbonzini@redhat.com>
> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
> ---
> hw/mem/nvdimm.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/hw/mem/nvdimm.c b/hw/mem/nvdimm.c
> index 81896c0..7895805 100644
> --- a/hw/mem/nvdimm.c
> +++ b/hw/mem/nvdimm.c
> @@ -98,6 +98,7 @@ static void nvdimm_realize(PCDIMMDevice *dimm, Error **errp)
> "small to contain nvdimm label (0x%" PRIx64 ") and "
> "aligned PMEM (0x%" PRIx64 ")",
> path, memory_region_size(mr), nvdimm->label_size, align);
> + g_free(path);
> return;
> }
Michael: Please take this patch through your ACPI tree
Thanks,
Stefan
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 473 bytes --]
prev parent reply other threads:[~2016-07-06 15:52 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-28 9:06 [Qemu-devel] [PATCH] nvdimm: fix memory leak in error code path Stefan Hajnoczi
2016-06-28 9:10 ` Igor Mammedov
2016-06-28 9:20 ` Xiao Guangrong
2016-07-06 15:52 ` Stefan Hajnoczi [this message]
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=20160706155211.GA944@stefanha-x1.localdomain \
--to=stefanha@gmail.com \
--cc=guangrong.xiao@linux.intel.com \
--cc=imammedo@redhat.com \
--cc=mst@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.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).