diff --git a/drivers/usbhost/usbhost_hub.c b/drivers/usbhost/usbhost_hub.c index d2b0972d85..a83fb95d9a 100644 --- a/drivers/usbhost/usbhost_hub.c +++ b/drivers/usbhost/usbhost_hub.c @@ -1336,7 +1336,7 @@ errout_with_ctrlreq: kmm_free(priv->ctrlreq); errout_with_hub: - kmm_free(priv); + kmm_free(alloc); return NULL; }