V4L/DVB (11515): drivers/media/video/saa5249.c: fix use-after-free and leak
authorDan Carpenter <error27@gmail.com>
Tue, 14 Apr 2009 22:50:33 +0000 (19:50 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 29 Apr 2009 18:41:11 +0000 (15:41 -0300)
commit5b83cfa98569663b6fa6cda85a1f2fd371a082c7
tree1c790cd58393250fc18b68287082abc061998eef
parent3964b58a25fdca066011600bf58b38d00e9ae28d
V4L/DVB (11515): drivers/media/video/saa5249.c: fix use-after-free and leak

I moved the kfree() down a couple lines.  t->vdev is going to be in freed
memory so there is no point setting it to NULL.  I added a kfree(t) on a

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/saa5249.c