[linux-dvb]memory leakage in dvb_demux.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <checkout3.tw@xxxxxxxxxxxx> 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 <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????????????? 
> 
> 
> _______________________________________________
> 
> linux-dvb@xxxxxxxxxxx
> http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
> 
>

[Index of Archives]     [Linux Media]     [Video 4 Linux]     [Asterisk]     [Samba]     [Xorg]     [Xfree86]     [Linux USB]

  Powered by Linux