Samba 2.0.7 memory leaks - continued.

Dhirender S Rathi dhiren at r16a.com
Wed Oct 4 23:00:56 GMT 2000


Hi Jeremy,
         Is it possible to have this change in
patch format, so that i can directly apply to the 
Samba-2.0.7 and test it out.

Thanks


Dhiren


Jeremy Allison wrote:
> 
> P Ranjit Kumar wrote:
> >
> > > I agree with Ranjit. I would like to test the following:
> > > ---
> > > BOOL reset_stat_cache( void )
> > > {
> > >   hash_clear(&stat_cache);
> > > return hash_table_init( &stat_cache, INIT_STAT_CACHE_SIZE,
> > (compare_function)> trcmp));
> > > /* reset_stat_cache  */
> > > -
> >
> > > Does anybody see any problems with this?
> > >  there anything else I could free before the call to hash_table_init?
> >
> > > Teers!
> > > Teemu
> >
> > I think its preferable to use the patch from Jeremy (I think its more
> > efficient). Just add the hash_table_init(......) line after the hash_clear
> > function.
> 
> The hash_table_init() was being done inside the hash_clear()
> function. I've now moved it out of there to make it more explicit.
> 
> Jeremy.
> 
> --
> --------------------------------------------------------
> Buying an operating system without source is like buying
> a self-assembly Space Shuttle with no instructions.
> --------------------------------------------------------




More information about the samba-technical mailing list