staging: frontier: fix memory leak in usb_alphatrack_probe()

oldi_buffer and write_buffer need to free when usb_alphatrack_delete()
is called.

Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Daeseok Youn 2014-03-07 17:25:55 +09:00 committed by Greg Kroah-Hartman
parent 61b0f7e5b5
commit 95ad072473

View file

@ -208,7 +208,9 @@ static void usb_alphatrack_delete(struct usb_alphatrack *dev)
kfree(dev->ring_buffer);
kfree(dev->interrupt_in_buffer);
kfree(dev->interrupt_out_buffer);
kfree(dev); /* fixme oldi_buffer */
kfree(dev->oldi_buffer);
kfree(dev->write_buffer);
kfree(dev);
}
/** usb_alphatrack_interrupt_in_callback */