mirror of https://gitee.com/openkylin/qemu.git
sysbus: fix memory leak
Signed-off-by: Gonglei <arei.gonglei@huawei.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
This commit is contained in:
parent
c2c17a2451
commit
84b5d556dc
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue