You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by ja...@apache.org on 2005/12/03 13:44:47 UTC
svn commit: r351930 -
/xerces/xerces-p/trunk/Handler/PerlContentCallbackHandler.cpp
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: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org