Re: [Nagios-devel] Free_extended_data() called twice

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

Re: [Nagios-devel] Free_extended_data() called twice

Post by Guest »

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=C3=A7ois 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: [email protected]
Website: http://www.nagios.org






This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked