From 586d2142a9f1aa5a1dceb0941e7b3f0953974a8b Mon Sep 17 00:00:00 2001 From: Gonglei Date: Fri, 10 Jul 2015 08:51:28 +0800 Subject: ppc/spapr_drc: fix memory leak fix CID 1311373. Signed-off-by: Gonglei Message-Id: <1436489490-236-3-git-send-email-arei.gonglei@huawei.com> Signed-off-by: Paolo Bonzini --- hw/ppc/spapr_drc.c | 1 + 1 file changed, 1 insertion(+) (limited to 'hw/ppc') 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"); } -- cgit v1.2.3