Free the correct memory pointer.

Submitted by:	Tim Borgeaud (via HPS)
This commit is contained in:
thompsa 2009-06-12 16:00:12 +00:00
parent efc22b7b70
commit f4c0a4bbe8

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);
}
/*------------------------------------------------------------------------*