Author: jasons
Date: Sat Dec  3 04:44:39 2005
New Revision: 351930

URL: http://svn.apache.org/viewcvs?rev=351930&view=rev
Log:
delete temporary char*'s to eliminate memory leak in ignorable_whitespace()

Modified:
    xerces/xerces-p/trunk/Handler/PerlContentCallbackHandler.cpp

Modified: xerces/xerces-p/trunk/Handler/PerlContentCallbackHandler.cpp
URL: 
http://svn.apache.org/viewcvs/xerces/xerces-p/trunk/Handler/PerlContentCallbackHandler.cpp?rev=351930&r1=351929&r2=351930&view=diff
==============================================================================
--- xerces/xerces-p/trunk/Handler/PerlContentCallbackHandler.cpp (original)
+++ xerces/xerces-p/trunk/Handler/PerlContentCallbackHandler.cpp Sat Dec  3 
04:44:39 2005
@@ -205,6 +205,9 @@
 
     perl_call_method("ignorable_whitespace", G_VOID);
 
+       // transcode mallocs this and leaves it up to us to free the memory
+    delete [] cptr;
+
     FREETMPS;
     LEAVE;
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to