diff options
author | Gonglei <arei.gonglei@huawei.com> | 2015-02-27 15:50:18 +0800 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2015-03-10 08:15:34 +0300 |
commit | 84b5d556dc29c06402783e98ee0eaa3369eb48e1 (patch) | |
tree | 7e5ef901548d6e671f99116ede35480748bb0949 /hw | |
parent | c2c17a245127cb456840e8dd9db9efc20a71e526 (diff) | |
download | qemu-84b5d556dc29c06402783e98ee0eaa3369eb48e1.zip qemu-84b5d556dc29c06402783e98ee0eaa3369eb48e1.tar.gz qemu-84b5d556dc29c06402783e98ee0eaa3369eb48e1.tar.bz2 |
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')
-rw-r--r-- | hw/core/sysbus.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/core/sysbus.c b/hw/core/sysbus.c index 84af593..b53c351 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); } |