Patch submission for comments : CGI speed improvement (XNG)
Fran=?utf-8?B?w6c=?=ois Laupretre
francois.laupretre-prestataire at calyon.com
Fri Jun 10 13:10:14 CEST 2005
> I think you're wrong about the memory leaks (although I
> whole-heartedly
> agree about the malloc()'s). Nagios has struggled recently
> with severe
> memory leaks and some valgrind sessions has narrowed it down to
> virtually nothing. Perhaps you aren't running recent CVS code?
Sure, but I just wrote that because somebody asked a question about
templates and to know what happens if you submit more than one "use" line in
an object definition. In this case, and like for every string directive, the
strdup creates a memory leak because the previous value is not tested to be
null. It is a special case because it is an incorrect syntax but either it
is refused and stops in error (what I would prefer), or it is accepted, the
previous value is silently discarded, and we should free the previous memory
block.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20050610/6b1584ff/attachment.html>
-------------- next part --------------
Ce message et ses pièces jointes (le "message") est destiné à l'usage
exclusif de son destinataire.
Si vous recevez ce message par erreur, merci d'en aviser immédiatement
l'expéditeur et de le détruire ensuite. Le présent message pouvant
être altéré à notre insu, CALYON Corporate and Investment Bank
ne peut pas être engagé par son contenu. Tous droits réservés.
This message and/or any attachments (the "message") is intended for
the sole use of its addressee.
If you are not the addressee, please immediately notify the sender and
then destroy the message. As this message and/or any attachments may
have been altered without our knowledge, its content is not legally
binding on CALYON Corporate and Investment Bank. All rights reserved.
More information about the Developers
mailing list