[media] EM28xx - Fix memory leak on disconnect or error
authorChris Rankin <rankincj@yahoo.com>
Sun, 4 Sep 2011 18:38:14 +0000 (15:38 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 18 Sep 2011 10:58:01 +0000 (07:58 -0300)
commit16e3d2f4fab6e001a79705fa273418afc10188f8
treec3d3ae94639e5c7c6f65394aeaeb55c2340ccc02
parent7577911244c437f4a4abac5e4b67b059c06dbe9d
[media] EM28xx - Fix memory leak on disconnect or error

Release the dev->alt_max_pkt_size buffer in all cases.

Signed-off-by: Chris Rankin <rankincj@yahoo.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/em28xx/em28xx-cards.c
drivers/media/video/em28xx/em28xx-video.c