]> bbs.cooldavid.org Git - net-next-2.6.git/commit
V4L/DVB: cx18: Fix memory leak in cx18-alsa starting of PCM captures
authorAndy Walls <awalls@radix.net>
Sat, 30 Jan 2010 18:50:51 +0000 (15:50 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 26 Feb 2010 18:10:50 +0000 (15:10 -0300)
commit831f476cee704c37e7f96510135a90dfec6d00e9
tree701bbdec5d39da9729ce51d5d90cc517d7fc2ec5
parentb4729dcbba5431bf636d3d6615709383ad5e0d34
V4L/DVB: cx18: Fix memory leak in cx18-alsa starting of PCM captures

The cx18_open_id is normally dynamically allocated and stored in the
filp->private_data for v4l2 file operations.  The cx18-alsa routines should
not dynamically allocate a cx18_open_id because they never store it anywhere
and never free it.  This change fixes that and plugs a memory leak.

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/cx18/cx18-alsa-pcm.c