[media] hdpvr: Fix memory leak in debug
authorMasanari Iida <standby24x7@gmail.com>
Fri, 17 Jan 2014 16:38:00 +0000 (13:38 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 4 Feb 2014 08:43:53 +0000 (06:43 -0200)
commit1ba6c90161ac058f580e6ceb5ccc14dcd86365d1
treec78403a862d45fb4939398375380be5b7c6828f5
parentf2e4c5e004691dfe37d0e4b363296f28abdb9bc7
[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