aboutsummaryrefslogtreecommitdiff
path: root/hw/ppc
diff options
context:
space:
mode:
authorGonglei <arei.gonglei@huawei.com>2015-07-10 08:51:28 +0800
committerPaolo Bonzini <pbonzini@redhat.com>2015-07-16 20:00:20 +0200
commit586d2142a9f1aa5a1dceb0941e7b3f0953974a8b (patch)
tree9395571af61a246b3512dd407aa5f5194d9ed7a0 /hw/ppc
parent02dae26ac4ceb1e82c432cfca4d9b65ae82343c6 (diff)
ppc/spapr_drc: fix memory leak
fix CID 1311373. Signed-off-by: Gonglei <arei.gonglei@huawei.com> Message-Id: <1436489490-236-3-git-send-email-arei.gonglei@huawei.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/ppc')
-rw-r--r--hw/ppc/spapr_drc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/ppc/spapr_drc.c b/hw/ppc/spapr_drc.c
index ef985381cb..ee874326ee 100644
--- a/hw/ppc/spapr_drc.c
+++ b/hw/ppc/spapr_drc.c
@@ -422,6 +422,7 @@ static void realize(DeviceState *d, Error **errp)
error_free(err);
object_unref(OBJECT(drc));
}
+ g_free(child_name);
DPRINTFN("drc realize complete");
}