aboutsummaryrefslogtreecommitdiff
path: root/hw/core/sysbus.c
diff options
context:
space:
mode:
authorGonglei <arei.gonglei@huawei.com>2015-02-27 15:50:18 +0800
committerMichael Tokarev <mjt@tls.msk.ru>2015-03-10 08:15:34 +0300
commit84b5d556dc29c06402783e98ee0eaa3369eb48e1 (patch)
tree7e5ef901548d6e671f99116ede35480748bb0949 /hw/core/sysbus.c
parentc2c17a245127cb456840e8dd9db9efc20a71e526 (diff)
sysbus: fix memory leak
Signed-off-by: Gonglei <arei.gonglei@huawei.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'hw/core/sysbus.c')
-rw-r--r--hw/core/sysbus.c2
1 files changed, 2 insertions, 0 deletions
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);
}