mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
usb: release the created buses
Leaks spotted by ASAN. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
675f22c6d3
commit
cd7bc87868
2 changed files with 18 additions and 0 deletions
|
@ -896,6 +896,8 @@ static void usb_uas_unrealize(USBDevice *dev, Error **errp)
|
|||
UASDevice *uas = USB_UAS(dev);
|
||||
|
||||
qemu_bh_delete(uas->status_bh);
|
||||
|
||||
object_unref(OBJECT(&uas->bus));
|
||||
}
|
||||
|
||||
static void usb_uas_realize(USBDevice *dev, Error **errp)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue