Prechádzať zdrojové kódy

r.out.gdal: close raster band after range check

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@58305 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz 11 rokov pred
rodič
commit
a7ad3fa3de

+ 2 - 0
raster/r.out.gdal/export_band.c

@@ -187,6 +187,8 @@ int exact_checks(GDALDataType export_datatype,
 	ret = -1;
 	ret = -1;
     }
     }
 
 
+    Rast_close(fd);
+
     G_free(bufer);
     G_free(bufer);
 
 
     return ret;
     return ret;

+ 1 - 1
raster/r.out.gdal/main.c

@@ -228,7 +228,7 @@ int main(int argc, char *argv[])
 	exit(EXIT_SUCCESS);
 	exit(EXIT_SUCCESS);
     }
     }
     
     
-    /* Try to open input GRASS raster.. */
+    /* Find input GRASS raster.. */
     mapset = G_find_raster2(input->answer, "");
     mapset = G_find_raster2(input->answer, "");
 
 
     if (mapset != NULL) {
     if (mapset != NULL) {