aboutsummaryrefslogtreecommitdiff
path: root/hw/usb/host-legacy.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/usb/host-legacy.c')
-rw-r--r--hw/usb/host-legacy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/usb/host-legacy.c b/hw/usb/host-legacy.c
index 3a5f705721..3cc9c4282c 100644
--- a/hw/usb/host-legacy.c
+++ b/hw/usb/host-legacy.c
@@ -132,7 +132,7 @@ USBDevice *usb_host_device_open(USBBus *bus, const char *devname)
return dev;
fail:
- qdev_free(&dev->qdev);
+ object_unparent(OBJECT(dev));
return NULL;
}