From: Paolo Bonzini <pbonzini@redhat.com>
To: Markus Armbruster <armbru@redhat.com>, qemu-devel@nongnu.org
Cc: cornelia.huck@de.ibm.com, frank.blaschka@de.ibm.com
Subject: Re: [Qemu-devel] [PATCH] s390: Plug memory leak on s390_pci_generate_event() error path
Date: Tue, 20 Jan 2015 11:07:47 +0100 [thread overview]
Message-ID: <54BE28F3.2000107@redhat.com> (raw)
In-Reply-To: <1421747797-2762-1-git-send-email-armbru@redhat.com>
On 20/01/2015 10:56, Markus Armbruster wrote:
> Signed-off-by: Markus Armbruster <armbru@redhat.com>
> ---
> hw/s390x/s390-pci-bus.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/hw/s390x/s390-pci-bus.c b/hw/s390x/s390-pci-bus.c
> index 1201b8d..d25ac74 100644
> --- a/hw/s390x/s390-pci-bus.c
> +++ b/hw/s390x/s390-pci-bus.c
> @@ -187,7 +187,7 @@ S390PCIBusDevice *s390_pci_find_dev_by_fh(uint32_t fh)
> static void s390_pci_generate_event(uint8_t cc, uint16_t pec, uint32_t fh,
> uint32_t fid, uint64_t faddr, uint32_t e)
> {
> - SeiContainer *sei_cont = g_malloc0(sizeof(SeiContainer));
> + SeiContainer *sei_cont;
> S390pciState *s = S390_PCI_HOST_BRIDGE(
> object_resolve_path(TYPE_S390_PCI_HOST_BRIDGE, NULL));
>
> @@ -195,6 +195,7 @@ static void s390_pci_generate_event(uint8_t cc, uint16_t pec, uint32_t fh,
> return;
> }
>
> + sei_cont = g_malloc0(sizeof(SeiContainer));
> sei_cont->fh = fh;
> sei_cont->fid = fid;
> sei_cont->cc = cc;
>
A patch for this had been sent already, though I prefer yours.
Paolo
next prev parent reply other threads:[~2015-01-20 10:07 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-20 9:56 [Qemu-devel] [PATCH] s390: Plug memory leak on s390_pci_generate_event() error path Markus Armbruster
2015-01-20 10:07 ` Paolo Bonzini [this message]
2015-01-21 9:54 ` Cornelia Huck
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=54BE28F3.2000107@redhat.com \
--to=pbonzini@redhat.com \
--cc=armbru@redhat.com \
--cc=cornelia.huck@de.ibm.com \
--cc=frank.blaschka@de.ibm.com \
--cc=qemu-devel@nongnu.org \
/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.