diff options
author | Jiri Slaby | 2010-01-06 13:45:28 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab | 2010-02-26 15:10:34 -0300 |
commit | a570fb6eec804e99c7fd3ac1db192842e9269bbb (patch) | |
tree | 013f02c3c8f769e769048029c77c3d6fd4fe4392 | |
parent | b46d37e61f886e901ba0b504125b135f450a19b5 (diff) |
V4L/DVB (13964): tuner-core, fix memory leak
Stanse found a memory leak in tuner_probe. It is not freed/assigned
on all paths. Fix that.
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r-- | drivers/media/video/tuner-core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/video/tuner-core.c b/drivers/media/video/tuner-core.c index 5b3eaa16afd2..c4dab6cfd948 100644 --- a/drivers/media/video/tuner-core.c +++ b/drivers/media/video/tuner-core.c @@ -1078,6 +1078,7 @@ static int tuner_probe(struct i2c_client *client, goto register_client; } + kfree(t); return -ENODEV; case 0x42: case 0x43: |