diff options
author | Gonglei <arei.gonglei@huawei.com> | 2015-07-10 08:51:28 +0800 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2015-07-16 20:00:20 +0200 |
commit | 586d2142a9f1aa5a1dceb0941e7b3f0953974a8b (patch) | |
tree | 9395571af61a246b3512dd407aa5f5194d9ed7a0 /hw/ppc | |
parent | 02dae26ac4ceb1e82c432cfca4d9b65ae82343c6 (diff) | |
download | hqemu-586d2142a9f1aa5a1dceb0941e7b3f0953974a8b.zip hqemu-586d2142a9f1aa5a1dceb0941e7b3f0953974a8b.tar.gz |
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.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/ppc/spapr_drc.c b/hw/ppc/spapr_drc.c index ef98538..ee87432 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"); } |