From: Gonglei Date: Fri, 27 Feb 2015 07:50:18 +0000 (+0800) Subject: sysbus: fix memory leak X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=84b5d556dc29c06402783e98ee0eaa3369eb48e1;p=qemu.git sysbus: fix memory leak Signed-off-by: Gonglei Signed-off-by: Michael Tokarev --- diff --git a/hw/core/sysbus.c b/hw/core/sysbus.c index 84af59379d..b53c351aa4 100644 --- a/hw/core/sysbus.c +++ b/hw/core/sysbus.c @@ -91,6 +91,8 @@ bool sysbus_has_irq(SysBusDevice *dev, int n) ObjectProperty *r; r = object_property_find(OBJECT(dev), prop, NULL); + g_free(prop); + return (r != NULL); }