[GRASS-SVN] r58305 - grass/trunk/raster/r.out.gdal

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Nov 25 11:50:46 PST 2013


Author: mmetz
Date: 2013-11-25 11:50:46 -0800 (Mon, 25 Nov 2013)
New Revision: 58305

Modified:
   grass/trunk/raster/r.out.gdal/export_band.c
   grass/trunk/raster/r.out.gdal/main.c
Log:
r.out.gdal: close raster band after range check

Modified: grass/trunk/raster/r.out.gdal/export_band.c
===================================================================
--- grass/trunk/raster/r.out.gdal/export_band.c	2013-11-25 15:34:47 UTC (rev 58304)
+++ grass/trunk/raster/r.out.gdal/export_band.c	2013-11-25 19:50:46 UTC (rev 58305)
@@ -187,6 +187,8 @@
 	ret = -1;
     }
 
+    Rast_close(fd);
+
     G_free(bufer);
 
     return ret;

Modified: grass/trunk/raster/r.out.gdal/main.c
===================================================================
--- grass/trunk/raster/r.out.gdal/main.c	2013-11-25 15:34:47 UTC (rev 58304)
+++ grass/trunk/raster/r.out.gdal/main.c	2013-11-25 19:50:46 UTC (rev 58305)
@@ -228,7 +228,7 @@
 	exit(EXIT_SUCCESS);
     }
     
-    /* Try to open input GRASS raster.. */
+    /* Find input GRASS raster.. */
     mapset = G_find_raster2(input->answer, "");
 
     if (mapset != NULL) {



More information about the grass-commit mailing list