Hi Q-ha, Thank you for the advice. I'll confirm it later. btw you mentioned that "Let the kernel do the work for you", will there be kernel panic if I add vfree() just behind every list_del() in dvb_demux.c? Samuel Q-ha Park <masterq@xxxxxxxxx> wrote: Let the kernel do the work for you. Run "free" to see if the memory really leaks and make sure it's not cached or buffered memory you referring to as "leaking". Q-ha On 5/4/05, Samuel Huang wrote: > Hi Johannes, > > This is what I meant...the memory will keep leaking until driver unloaded. > I used 'top' and found memory usage getting larger, > though kernel will helps to free the memory when over-used. > Isn't it good idea to free feed and filter once they won't be used anymore > rather than unloading driver? > Any discussions are welcome. > > Samuel > > > Johannes Stezenbach wrote: > Samuel Huang wrote: > > I found all the list_del() used in functions in dvb_demux.c lacked > > vfree() and memory keeps leaking. vfree() in dvb_dmx_release() helps > > nothing, am I right? btw, I referred to the file dvb_ca_en50221.c and > > found the kfrees were well-located just behind list_del(). Is there no > > suitable memory free function used in dvb_demux.c, or I stupidly > > missed it... Could somebody tell me where it is? Thanks guys! > > The feeds and filters are allocated at initialization time, > and freed when the driver is unloaded. Nothing to free > at list_del() time. > > Johannes > > _______________________________________________ > > linux-dvb@xxxxxxxxxxx > http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb > > > > _________________________________________________ > Love me little, love me long. > > Samuel H. > > > > ________________________________ > Yahoo!?????? > ????250MB????????????? > > > _______________________________________________ > > linux-dvb@xxxxxxxxxxx > http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb > > _________________________________________________ Love me little, love me long. Samuel H. --------------------------------- Yahoo!?????? ????250MB????????????? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.linuxtv.org/pipermail/linux-dvb/attachments/20050504/6b3a0724/attachment.htm