From 84b5d556dc29c06402783e98ee0eaa3369eb48e1 Mon Sep 17 00:00:00 2001 From: Gonglei Date: Fri, 27 Feb 2015 15:50:18 +0800 Subject: sysbus: fix memory leak Signed-off-by: Gonglei Signed-off-by: Michael Tokarev --- hw/core/sysbus.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'hw/core/sysbus.c') 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); } -- cgit v1.2.3