diff mbox

em28xx-dvb: fix memleak in dvb_fini()

Message ID 1266058965.3974.23.camel@localhost (mailing list archive)
State Superseded
Headers show

Commit Message

Francesco Lavra Feb. 13, 2010, 11:02 a.m. UTC
None
diff mbox

Patch

--- a/drivers/media/video/em28xx/em28xx-dvb.c	2009-12-31 12:23:53.000000000 +0100
+++ b/drivers/media/video/em28xx/em28xx-dvb.c	2009-12-31 12:23:56.000000000 +0100
@@ -606,6 +606,7 @@  static int dvb_fini(struct em28xx *dev)

 	if (dev->dvb) {
 		unregister_dvb(dev->dvb);
+		kfree(dev->dvb);
 		dev->dvb = NULL;
 	}