[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PULL 6/8] usb-ccid: fix bus leak

From: Gerd Hoffmann
Subject: [Qemu-devel] [PULL 6/8] usb-ccid: fix bus leak
Date: Tue, 12 Jun 2018 12:44:28 +0200

From: Marc-André Lureau <address@hidden>

qbus_create_inplace() creates a new reference in realize(), it must be
released in unrealize().

Signed-off-by: Marc-André Lureau <address@hidden>
Message-id: address@hidden
Signed-off-by: Gerd Hoffmann <address@hidden>
 hw/usb/dev-smartcard-reader.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/hw/usb/dev-smartcard-reader.c b/hw/usb/dev-smartcard-reader.c
index 2131e33d27..f7c91230d5 100644
--- a/hw/usb/dev-smartcard-reader.c
+++ b/hw/usb/dev-smartcard-reader.c
@@ -1147,6 +1147,7 @@ static void ccid_unrealize(USBDevice *dev, Error **errp)
     USBCCIDState *s = USB_CCID_DEV(dev);
+    object_unref(OBJECT(&s->bus));
 static void ccid_flush_pending_answers(USBCCIDState *s)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]