upstream: [media] hdpvr: Fix memory leak in debug
authorMasanari Iida <standby24x7@gmail.com>
Fri, 17 Jan 2014 16:38:00 +0000 (13:38 -0300)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:54:34 +0000 (11:54 +0900)
commitd56aebd5d318336c677d3a5027a67911d844f683
treec3268ee622f67ad2a1711f38cca8de0b7236159d
parent1f5e7a25bb05dac56936c186ab498422ff362524
upstream: [media] hdpvr: Fix memory leak in debug

cppcheck reported memory leak in device_authorizatio()
within hdpvr-core.c.
When the debug option is specified and the code jump to
"unlock:" label, print_buf was not freed.
Confirm the module succesfully compiled without error.

Signed-off-by: Masanari Iida <standby24x7@gmail.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/usb/hdpvr/hdpvr-core.c