From: Mauro Carvalho Chehab Date: Thu, 13 Nov 2008 16:06:33 +0000 (-0300) Subject: V4L/DVB (9613): tvaudio: fix a memory leak X-Git-Tag: v2.6.28-rc5~7^2~10 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=5c6533510335ab291dcc0e9cdb98e67b50f6b2e9;p=linux-2.6-omap-h63xx.git V4L/DVB (9613): tvaudio: fix a memory leak Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/tvaudio.c b/drivers/media/video/tvaudio.c index b59e47272ab..3332df890f0 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) } 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);