[mapserver-commits] r10679 - trunk/mapserver
svn at osgeo.org
svn at osgeo.org
Thu Oct 28 14:55:36 EDT 2010
Author: rouault
Date: 2010-10-28 11:55:35 -0700 (Thu, 28 Oct 2010)
New Revision: 10679
Modified:
trunk/mapserver/mapogcsos.c
Log:
Object allocated with CPLParseXMLString() should be freed with CPLDestroyXMLNode(), to free completely the memory and avoid potential cross-heap issues, which can be detected in GDAL by enabling DEBUG_VSIMALLOC in gdal/port/cpl_vsisimple.cpp
Modified: trunk/mapserver/mapogcsos.c
===================================================================
--- trunk/mapserver/mapogcsos.c 2010-10-28 13:38:27 UTC (rev 10678)
+++ trunk/mapserver/mapogcsos.c 2010-10-28 18:55:35 UTC (rev 10679)
@@ -1155,7 +1155,7 @@
}
}
}
- free(psRoot);
+ CPLDestroyXMLNode(psRoot);
return pszReturn;
}
More information about the mapserver-commits
mailing list