X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=drivers%2Fusb%2Fgadget%2Fcomposite.c;h=a13b21d0a0f233833d616735460b51da288a83a8;hb=009902a871dcb1ad60e746280372f47d90f65353;hp=d96296cd73b1f57815413afcc46e33f0e38390a0;hpb=20913018fbce5a2e3c93b6eeb56e67460e29542c;p=u-boot diff --git a/drivers/usb/gadget/composite.c b/drivers/usb/gadget/composite.c index d96296cd73..a13b21d0a0 100644 --- a/drivers/usb/gadget/composite.c +++ b/drivers/usb/gadget/composite.c @@ -948,6 +948,7 @@ static void composite_unbind(struct usb_gadget *gadget) debug("unbind config '%s'/%p\n", c->label, c); c->unbind(c); } + free(c); } if (composite->unbind) composite->unbind(cdev);