AW: [En-Nut-Discussion] DNS fix
    Oliver Schulz 
    olischulz at web.de
       
    Thu Apr 15 22:39:24 CEST 2004
    
    
  
Hi Michel,
> I checked it and all other places where I set pointers to 0 prevent
> them from being freed twice.
> E.g. adding dor->dor_name = 0; and dor->dor_data = 0 to
> ReleaseDnsResource()
> DOES prevent freeing twice. (Right?)
Thats right.
But since the ReleaseDnsXXX functions are only called once at the very end
of NutDnsGetResource/NutDnsGetHostByName and the used structures (doh, doq
and dor) are not freed in any other way before, you can be sure, that they
are not freed twice...
Oliver.
    
    
More information about the En-Nut-Discussion
mailing list