Free_extended_data() called twice

Ethan Galstad nagios at nagios.org
Sun Jun 12 01:54:19 CEST 2005


Thanks for the note.  This will be fixed in CVS shortly.  It 
shouldn't cause any problems, because the linked lists being freed 
are set to NULL at the end of the function.  

On 10 Jun 2005 at 18:38, François Laupretre wrote:

> 
> Sorry for posting so many messages but... 
> I suspect a problem at the end of several CGI's execution. In 
> extinfo, for example, at the end of main(), it calls free_memory, and
> then free_extended_data. But free_memory itself calls
> free_object_data, which calls free_extended_data. So,
> free_extended_data is called twice and, the second time, it frees
> again his pointers (that's why I try to always set the pointers to
> NULL after freeing them, even when I won't use them any more). Not
> sure, but if I am right, one of the calls should be suppressed. 



Ethan Galstad,
Nagios Developer
---
Email: nagios at nagios.org
Website: http://www.nagios.org



-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r 




More information about the Developers mailing list