usb/gadget: don't leak hs_descriptors

We should free both descriptors.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
Sebastian Andrzej Siewior 2011-04-11 20:44:30 +02:00 committed by Greg Kroah-Hartman
parent 0fdf65c339
commit 16a2f970f3

View File

@ -706,6 +706,7 @@ f_audio_unbind(struct usb_configuration *c, struct usb_function *f)
struct f_audio *audio = func_to_audio(f); struct f_audio *audio = func_to_audio(f);
usb_free_descriptors(f->descriptors); usb_free_descriptors(f->descriptors);
usb_free_descriptors(f->hs_descriptors);
kfree(audio); kfree(audio);
} }