Skip to content

Commit

Permalink
V4L/DVB (13964): tuner-core, fix memory leak
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jiri Slaby authored and Mauro Carvalho Chehab committed Feb 26, 2010
1 parent b46d37e commit a570fb6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/media/video/tuner-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1078,6 +1078,7 @@ static int tuner_probe(struct i2c_client *client,

goto register_client;
}
kfree(t);
return -ENODEV;
case 0x42:
case 0x43:
Expand Down

0 comments on commit a570fb6

Please sign in to comment.