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 <js@xxxxxxxxxxx> 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????????????? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.linuxtv.org/pipermail/linux-dvb/attachments/20050504/1ee7980c/attachment.htm