[mapserver-commits] r7390 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Mon Feb 18 12:00:06 EST 2008


Author: tomkralidis
Date: 2008-02-18 12:00:05 -0500 (Mon, 18 Feb 2008)
New Revision: 7390

Modified:
   trunk/mapserver/mapowscommon.c
   trunk/mapserver/mapwcs.c
   trunk/mapserver/mapwfs.c
Log:
fix various memory leaks


Modified: trunk/mapserver/mapowscommon.c
===================================================================
--- trunk/mapserver/mapowscommon.c	2008-02-18 15:01:53 UTC (rev 7389)
+++ trunk/mapserver/mapowscommon.c	2008-02-18 17:00:05 UTC (rev 7390)
@@ -528,6 +528,7 @@
     psNode = xmlNewChild(psMainNode, NULL, BAD_CAST "ExceptionText", BAD_CAST ExceptionText);
   }
 
+  free(ows_version_string);
   free(xsi_schemaLocation);
   return psRootNode;
 }

Modified: trunk/mapserver/mapwcs.c
===================================================================
--- trunk/mapserver/mapwcs.c	2008-02-18 15:01:53 UTC (rev 7389)
+++ trunk/mapserver/mapwcs.c	2008-02-18 17:00:05 UTC (rev 7390)
@@ -176,6 +176,7 @@
   if(params) {
     /* TODO */
     if(params->version) free(params->version);
+    if(params->updatesequence) free(params->updatesequence);
     if(params->request) free(params->request);
     if(params->service) free(params->service);
     if(params->section) free(params->section);

Modified: trunk/mapserver/mapwfs.c
===================================================================
--- trunk/mapserver/mapwfs.c	2008-02-18 15:01:53 UTC (rev 7389)
+++ trunk/mapserver/mapwfs.c	2008-02-18 17:00:05 UTC (rev 7390)
@@ -1739,6 +1739,8 @@
     {
         if (wfsparams->pszVersion)
           free(wfsparams->pszVersion);
+        if (wfsparams->pszUpdateSequence)
+          free(wfsparams->pszUpdateSequence);
         if (wfsparams->pszRequest)
           free(wfsparams->pszRequest);
         if (wfsparams->pszService)
@@ -1749,6 +1751,8 @@
           free(wfsparams->pszFilter);
         if (wfsparams->pszFeatureId)
           free(wfsparams->pszFeatureId);
+        if (wfsparams->pszOutputFormat)
+          free(wfsparams->pszOutputFormat);
     }
 }
 



More information about the mapserver-commits mailing list