[mapserver-commits] r11870 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Tue Jul 5 14:25:31 EDT 2011


Author: sdlime
Date: 2011-07-05 11:25:31 -0700 (Tue, 05 Jul 2011)
New Revision: 11870

Modified:
   trunk/mapserver/HISTORY.TXT
   trunk/mapserver/mapquery.c
Log:
Added missing fclose() calls when writing query files. (#3943)

Modified: trunk/mapserver/HISTORY.TXT
===================================================================
--- trunk/mapserver/HISTORY.TXT	2011-07-04 15:42:58 UTC (rev 11869)
+++ trunk/mapserver/HISTORY.TXT	2011-07-05 18:25:31 UTC (rev 11870)
@@ -15,6 +15,8 @@
 Current Version (SVN trunk, 6.1-dev, future 6.2): 
 -------------------------------------------------
 
+- Added missing fclose() when writing query files (#3943)
+
 - Fix double-free in msAddImageSymbol() when filename is a http resource (#3939)
 
 - Fix rendering of lines with outlinewidth set if not on first style (#3935)

Modified: trunk/mapserver/mapquery.c
===================================================================
--- trunk/mapserver/mapquery.c	2011-07-04 15:42:58 UTC (rev 11869)
+++ trunk/mapserver/mapquery.c	2011-07-05 18:25:31 UTC (rev 11870)
@@ -206,6 +206,7 @@
     }
   }
 
+  fclose(stream);
   return MS_SUCCESS;
 }
 
@@ -316,6 +317,7 @@
     fprintf(stream, "%d\n", MS_SHAPE_NULL); /* NULL shape */
   }
 
+  fclose(stream);
   return MS_SUCCESS;
 }
 



More information about the mapserver-commits mailing list