git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
V4L/DVB: cx18-alsa: fix memory leak in error condition
[safe/jmp/linux-2.6]
/
drivers
/
media
/
video
/
cx18
/
cx18-alsa-pcm.c
diff --git
a/drivers/media/video/cx18/cx18-alsa-pcm.c
b/drivers/media/video/cx18/cx18-alsa-pcm.c
index
05cb8f1
..
e14f8e4
100644
(file)
--- a/
drivers/media/video/cx18/cx18-alsa-pcm.c
+++ b/
drivers/media/video/cx18/cx18-alsa-pcm.c
@@
-95,6
+95,7
@@
static int snd_cx18_pcm_capture_open(struct snd_pcm_substream *substream)
/* See if the stream is available */
if (cx18_claim_stream(item, item->type)) {
/* No, it's already in use */
+ kfree(item);
return -EBUSY;
}