diff mbox

em28xx-dvb: fix memleak in dvb_fini()

Message ID 1262260031.4401.9.camel@localhost (mailing list archive)
State Accepted
Headers show

Commit Message

Francesco Lavra Dec. 31, 2009, 11:47 a.m. UTC
None
diff mbox

Patch

--- a/linux/drivers/media/video/em28xx/em28xx-dvb.c	2009-12-31 12:23:53.000000000 +0100
+++ b/linux/drivers/media/video/em28xx/em28xx-dvb.c	2009-12-31 12:23:56.000000000 +0100
@@ -607,6 +607,7 @@  static int dvb_fini(struct em28xx *dev)
 
 	if (dev->dvb) {
 		unregister_dvb(dev->dvb);
+		kfree(dev->dvb);
 		dev->dvb = NULL;
 	}