diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-11-13 11:06:33 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-11-14 11:24:44 -0500 |
commit | 5c6533510335ab291dcc0e9cdb98e67b50f6b2e9 (patch) | |
tree | 1851d50a6c47428c3a3cfaedb424f9b9a7f6730f /drivers/media/video/tvaudio.c | |
parent | f21f237cf55494c3a4209de323281a3b0528da10 (diff) |
V4L/DVB (9613): tvaudio: fix a memory leak
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/tvaudio.c')
-rw-r--r-- | drivers/media/video/tvaudio.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/video/tvaudio.c b/drivers/media/video/tvaudio.c index b59e47272abf..3332df890f0b 100644 --- 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) | |||
1481 | } | 1481 | } |
1482 | if (desc->name == NULL) { | 1482 | if (desc->name == NULL) { |
1483 | v4l_dbg(1, debug, client, "no matching chip description found\n"); | 1483 | v4l_dbg(1, debug, client, "no matching chip description found\n"); |
1484 | kfree(chip); | ||
1484 | return -EIO; | 1485 | return -EIO; |
1485 | } | 1486 | } |
1486 | v4l_info(client, "%s found @ 0x%x (%s)\n", desc->name, client->addr<<1, client->adapter->name); | 1487 | v4l_info(client, "%s found @ 0x%x (%s)\n", desc->name, client->addr<<1, client->adapter->name); |