V4L/DVB: cx18-alsa: fix memory leak in error condition
commit1a8e0e33881c9dd8cf3514bfd0b5a7ef148da929
authorDevin Heitmueller <dheitmueller@kernellabs.com>
Sat, 12 Dec 2009 20:38:53 +0000 (12 17:38 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 26 Feb 2010 18:10:44 +0000 (26 15:10 -0300)
treea4c93083d474c6697fab74d411399dbd0c95eef6
parent485e319adef5d33a1dca4320cb26fb387b4a9381
V4L/DVB: cx18-alsa: fix memory leak in error condition

If the stream is already in use, make sure we free up the memory allocated
earlier.

Thanks to Andy Wall for reviewing and pointing this out.

This work was sponsored by ONELAN Limited.

Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/cx18/cx18-alsa-pcm.c