Free the correct memory pointer.

Submitted by:	Tim Borgeaud (via HPS)
This commit is contained in:
Andrew Thompson 2009-06-12 16:00:12 +00:00
parent a755d548b7
commit e601cda8d6

View file

@ -1143,7 +1143,7 @@ usb_linux_free_device(struct usb_device *dev)
uhe++;
}
err = usb_setup_endpoint(dev, &dev->ep0, 0);
free(uhe, M_USBDEV);
free(dev->linux_endpoint_start, M_USBDEV);
}
/*------------------------------------------------------------------------*