Samba 2.0.7 memory leaks - continued.
Jeremy Allison
jeremy at valinux.com
Wed Oct 4 22:19:50 GMT 2000
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