[mapserver-commits] r7791 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Tue Jul 8 14:56:16 EDT 2008


Author: assefa
Date: 2008-07-08 14:56:15 -0400 (Tue, 08 Jul 2008)
New Revision: 7791

Modified:
   trunk/mapserver/HISTORY.TXT
   trunk/mapserver/mapwfs11.c
Log:
wfs11 getcapabilities: correct memory corruption (#2686)

Modified: trunk/mapserver/HISTORY.TXT
===================================================================
--- trunk/mapserver/HISTORY.TXT	2008-07-08 17:58:57 UTC (rev 7790)
+++ trunk/mapserver/HISTORY.TXT	2008-07-08 18:56:15 UTC (rev 7791)
@@ -13,6 +13,8 @@
 Current Version (SVN Trunk):
 ----------------------------
 
+- wfs11 getcapabilities: correct memory corruption (#2686)
+
 - Allow building against Curl 7.10.6 and older which lack CURLOPT_PROXYAUTH
   option required for *_proxy_auth_type metadata (#571)
 

Modified: trunk/mapserver/mapwfs11.c
===================================================================
--- trunk/mapserver/mapwfs11.c	2008-07-08 17:58:57 UTC (rev 7790)
+++ trunk/mapserver/mapwfs11.c	2008-07-08 18:56:15 UTC (rev 7791)
@@ -293,7 +293,6 @@
         msSetError(MS_WFSERR, "Server URL not found", "msWFSGetCapabilities11()");
         return msWFSException11(map, "mapserv", "NoApplicableCode", params->pszVersion);
     }
-    free( script_url );
 
 /* -------------------------------------------------------------------- */
 /*      Operations metadata.                                            */
@@ -402,16 +401,16 @@
     /*xmlFree(buffer);*/
     xmlFreeDoc(psDoc);
 
-    free(script_url);
+    free(script_url);	
      free(script_url_encoded);
     free(xsi_schemaLocation);
     free(schemalocation);
 
     xmlCleanupParser();
 
-    /* clean up */
-    msWFSFreeParamsObj(params);
-    free(params);
+    /* clean up : this is done in the dispatch*/
+    /*msWFSFreeParamsObj(params);
+    free(params);*/
 
     return(MS_SUCCESS);
 }



More information about the mapserver-commits mailing list