[PATCH -next] [media] dibusb: fix possible memory leak in dibusb_rc_query()

2016-10-29 Thread Wei Yongjun
From: Wei Yongjun 'buf' is malloced in dibusb_rc_query() and should be freed before leaving from the error handling cases, otherwise it will cause memory leak. Fixes: ff1c123545d7 ("[media] dibusb: handle error code on RC query") Signed-off-by: Wei Yongjun --- drivers/media/usb/dvb-usb/dibusb-

[PATCH -next] [media] dibusb: fix possible memory leak in dibusb_rc_query()

2016-10-29 Thread Wei Yongjun
From: Wei Yongjun 'buf' is malloced in dibusb_rc_query() and should be freed before leaving from the error handling cases, otherwise it will cause memory leak. Fixes: ff1c123545d7 ("[media] dibusb: handle error code on RC query") Signed-off-by: Wei Yongjun --- drivers/media/usb/dvb-usb/dibusb-