projects
/
platform
/
kernel
/
linux-stable.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f21f237
)
V4L/DVB (9613): tvaudio: fix a memory leak
author
Mauro Carvalho Chehab
<mchehab@redhat.com>
Thu, 13 Nov 2008 16:06:33 +0000
(13:06 -0300)
committer
Mauro Carvalho Chehab
<mchehab@redhat.com>
Fri, 14 Nov 2008 16:24:44 +0000
(14:24 -0200)
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/tvaudio.c
patch
|
blob
|
history
diff --git
a/drivers/media/video/tvaudio.c
b/drivers/media/video/tvaudio.c
index
b59e472
..
3332df8
100644
(file)
--- a/
drivers/media/video/tvaudio.c
+++ b/
drivers/media/video/tvaudio.c
@@
-1481,6
+1481,7
@@
static int chip_probe(struct i2c_client *client, const struct i2c_device_id *id)
}
if (desc->name == NULL) {
v4l_dbg(1, debug, client, "no matching chip description found\n");
+ kfree(chip);
return -EIO;
}
v4l_info(client, "%s found @ 0x%x (%s)\n", desc->name, client->addr<<1, client->adapter->name);