[mapguide-commits] r4316 - trunk/MgDev/Oem/dbxml-2.3.10/dbxml/src/dbxml/nodeStore

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Sat Oct 24 01:25:04 EDT 2009


Author: waltweltonlair
Date: 2009-10-24 01:25:03 -0400 (Sat, 24 Oct 2009)
New Revision: 4316

Modified:
   trunk/MgDev/Oem/dbxml-2.3.10/dbxml/src/dbxml/nodeStore/NsSAX2Reader.cpp
Log:
Fix memory leak in Berkely DBXML.

In NsSAX2Reader::error (in Oem\dbxml-2.3.10\dbxml\src\dbxml\nodeStore\NsSAX2Reader.cpp) it allocates a 500-byte buffer at the top, but doesn?\226?\128?\153t free it.

This one showed up when running the server resource service unit test.


Modified: trunk/MgDev/Oem/dbxml-2.3.10/dbxml/src/dbxml/nodeStore/NsSAX2Reader.cpp
===================================================================
--- trunk/MgDev/Oem/dbxml-2.3.10/dbxml/src/dbxml/nodeStore/NsSAX2Reader.cpp	2009-10-23 21:50:52 UTC (rev 4315)
+++ trunk/MgDev/Oem/dbxml-2.3.10/dbxml/src/dbxml/nodeStore/NsSAX2Reader.cpp	2009-10-24 05:25:03 UTC (rev 4316)
@@ -1022,6 +1022,7 @@
 	s << "at line, " << lineNum;
 	s << ", char " << colNum;
 	s << ". Parser message: " << bufp;
+	fMemoryManager->deallocate(bufp);
 	// log warnings as info, and errors as warning.
 	// Neither is fatal to the program, and may be
 	// what is expected.



More information about the mapguide-commits mailing list