mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-18 05:28:36 -07:00
usb-ccid: fix bus leak
qbus_create_inplace() creates a new reference in realize(), it must be released in unrealize(). Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-id: 20180531195119.22021-4-marcandre.lureau@redhat.com Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
265b578c58
commit
410a096adf
1 changed files with 1 additions and 0 deletions
|
|
@ -1147,6 +1147,7 @@ static void ccid_unrealize(USBDevice *dev, Error **errp)
|
||||||
USBCCIDState *s = USB_CCID_DEV(dev);
|
USBCCIDState *s = USB_CCID_DEV(dev);
|
||||||
|
|
||||||
ccid_bulk_in_clear(s);
|
ccid_bulk_in_clear(s);
|
||||||
|
object_unref(OBJECT(&s->bus));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void ccid_flush_pending_answers(USBCCIDState *s)
|
static void ccid_flush_pending_answers(USBCCIDState *s)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue