You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by pe...@apache.org on 2001/10/10 16:16:14 UTC
cvs commit: xml-xerces/c/src/util XMLUri.cpp
peiyongz 01/10/10 07:16:14
Modified: c/src/util XMLUri.cpp
Log:
fix to memory leak: portStr
Revision Changes Path
1.7 +2 -1 xml-xerces/c/src/util/XMLUri.cpp
Index: XMLUri.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/util/XMLUri.cpp,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- XMLUri.cpp 2001/10/09 12:24:05 1.6
+++ XMLUri.cpp 2001/10/10 14:16:13 1.7
@@ -55,7 +55,7 @@
*/
/*
- * $Id: XMLUri.cpp,v 1.6 2001/10/09 12:24:05 tng Exp $
+ * $Id: XMLUri.cpp,v 1.7 2001/10/10 14:16:13 peiyongz Exp $
*/
// ---------------------------------------------------------------------------
@@ -599,6 +599,7 @@
// port is everything after ":"
XMLCh* portStr = new XMLCh[end+1];
+ ArrayJanitor<XMLCh> portName(portStr);
start = index;
int port = -1;
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org