[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

[Nagios-devel] Free_extended_data() called twice

Post by Guest »

This is a multi-part message in MIME format.

------------7NhE3WuB9OnU6N9D2A0R5Y7
Content-Type: multipart/alternative;
boundary="----_=_NextPart_001_01C56DDA.E2BC557E"

This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C56DDA.E2BC557E
Content-Type: text/plain; charset="iso-8859-1"

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.

------_=_NextPart_001_01C56DDA.E2BC557E
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: Quoted-Printable






Free_extended_data() called twice



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, whi=
ch calls free_extended_data. So, free_extended_data is called twice and, th=
e 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 mor=
e).

Not sure, but if I am right, one of the calls should be s=
uppressed.





------_=_NextPart_001_01C56DDA.E2BC557E--

------------7NhE3WuB9OnU6N9D2A0R5Y7
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: Quoted-Printable

Ce message et ses pi=E8ces jointes (le "message") est destin=E9 =E0 l'usage=
=20
exclusif de son destinataire. =20
Si vous recevez ce message par erreur, merci d'en aviser imm=E9diatement =

l'exp=E9diteur et de le d=E9truire ensuite. Le pr=E9sent message pouvant =
=20
=EAtre alt=E9r=E9 =E0 notre insu, CALYON Corporate and Investment Bank =
=20
ne peut pas =EAtre engag=E9 par son contenu. Tous droits r=E9serv=E9s.=20
=20
This message and/or any attachments (the "message") is intended for =20
the sole use of its addressee. =20
If you are not the addressee, please immediately notify the sender and =20
then destroy the message. As this message and/or any attachments may=20
have been altered without our knowledge, its content is not legally=20
binding on CALYON Corporate and Investment Bank. All rights reserved. =
=20

------------7NhE3WuB9OnU6N9D2A0R5Y7--





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