[mapserver-commits] r11262 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Fri Mar 18 15:07:46 EDT 2011


Author: rouault
Date: 2011-03-18 12:07:46 -0700 (Fri, 18 Mar 2011)
New Revision: 11262

Modified:
   trunk/mapserver/mapogroutput.c
Log:
fix memleak

Modified: trunk/mapserver/mapogroutput.c
===================================================================
--- trunk/mapserver/mapogroutput.c	2011-03-18 19:04:09 UTC (rev 11261)
+++ trunk/mapserver/mapogroutput.c	2011-03-18 19:07:46 UTC (rev 11262)
@@ -343,9 +343,14 @@
                 
                 OGR_G_AddGeometryDirectly( hGeom, hRing );
             }
+
+            free(inner_flags);
+
             OGR_G_AddGeometryDirectly( hMP, hGeom );
         }
 
+        free(outer_flags);
+
         if( OGR_G_GetGeometryCount( hMP ) == 1 )
         {
             hGeom = OGR_G_Clone( OGR_G_GetGeometryRef( hMP, 0 ) );



More information about the mapserver-commits mailing list