Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b9bc07a0 authored by Robert Fitzsimons's avatar Robert Fitzsimons Committed by Mauro Carvalho Chehab
Browse files

V4L/DVB (7579): bttv: Fix memory leak in radio_release



Fix the leak of the bttv_fh structure allocated in radio_open which
was introduced by commit 5cd3955c.

Signed-off-by: default avatarRobert Fitzsimons <robfitz@273k.net>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent a53a4556
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -3463,6 +3463,9 @@ static int radio_release(struct inode *inode, struct file *file)
	struct bttv *btv = fh->btv;
	struct rds_command cmd;

	file->private_data = NULL;
	kfree(fh);

	btv->radio_user--;

	bttv_call_i2c_clients(btv, RDS_CMD_CLOSE, &cmd);