Skip to content

Commit

Permalink
[media] r820t: memory leak in release()
Browse files Browse the repository at this point in the history
I've moved the kfree(fe->tuner_priv) one line earlier, otherwise it is
a no-op.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Dan Carpenter authored and Mauro Carvalho Chehab committed Apr 25, 2013
1 parent f7a12fd commit ef0c870
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/media/tuners/r820t.c
Original file line number Diff line number Diff line change
Expand Up @@ -2252,9 +2252,8 @@ static int r820t_release(struct dvb_frontend *fe)

mutex_unlock(&r820t_list_mutex);

fe->tuner_priv = NULL;

kfree(fe->tuner_priv);
fe->tuner_priv = NULL;

return 0;
}
Expand Down

0 comments on commit ef0c870

Please sign in to comment.