From: <arei.gonglei@huawei.com>
To: qemu-devel@nongnu.org
Cc: qemu-trivial@nongnu.org, pbonzini@redhat.com,
Gonglei <arei.gonglei@huawei.com>
Subject: [Qemu-devel] [PATCH 3/4] arm/xlnx-zynqmp: fix memory leak
Date: Fri, 10 Jul 2015 08:51:29 +0800 [thread overview]
Message-ID: <1436489490-236-4-git-send-email-arei.gonglei@huawei.com> (raw)
In-Reply-To: <1436489490-236-1-git-send-email-arei.gonglei@huawei.com>
From: Gonglei <arei.gonglei@huawei.com>
fix CID 1311372.
Signed-off-by: Gonglei <arei.gonglei@huawei.com>
---
hw/arm/xlnx-zynqmp.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/hw/arm/xlnx-zynqmp.c b/hw/arm/xlnx-zynqmp.c
index 5e72078..00c5943 100644
--- a/hw/arm/xlnx-zynqmp.c
+++ b/hw/arm/xlnx-zynqmp.c
@@ -144,7 +144,7 @@ static void xlnx_zynqmp_realize(DeviceState *dev, Error **errp)
} else {
s->boot_cpu_ptr = &s->apu_cpu[i];
}
-
+ g_free(name);
object_property_set_int(OBJECT(&s->apu_cpu[i]), GIC_BASE_ADDR,
"reset-cbar", &err);
if (err) {
@@ -181,7 +181,7 @@ static void xlnx_zynqmp_realize(DeviceState *dev, Error **errp)
} else {
s->boot_cpu_ptr = &s->rpu_cpu[i];
}
-
+ g_free(name);
object_property_set_bool(OBJECT(&s->rpu_cpu[i]), true, "reset-hivecs",
&err);
if (err != NULL) {
--
1.7.12.4
next prev parent reply other threads:[~2015-07-10 0:52 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-10 0:51 [Qemu-devel] [PATCH 0/4] fix memory leak arei.gonglei
2015-07-10 0:51 ` [Qemu-devel] [PATCH 1/4] cpu: " arei.gonglei
2015-07-10 0:51 ` [Qemu-devel] [PATCH 2/4] ppc/spapr_drc: " arei.gonglei
2015-07-10 18:49 ` [Qemu-devel] [Qemu-trivial] " Michael Roth
2015-07-10 0:51 ` arei.gonglei [this message]
2015-07-11 8:54 ` [Qemu-devel] [PATCH 3/4] arm/xlnx-zynqmp: " Peter Crosthwaite
2015-07-10 0:51 ` [Qemu-devel] [PATCH 4/4] vl.c: " arei.gonglei
2015-07-10 9:28 ` Leon Alrae
2015-07-10 10:39 ` Gonglei
2015-07-10 12:54 ` [Qemu-devel] [PATCH 0/4] " Paolo Bonzini
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=1436489490-236-4-git-send-email-arei.gonglei@huawei.com \
--to=arei.gonglei@huawei.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-trivial@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.