Pārlūkot izejas kodu

Close f_format file (fix https://trac.osgeo.org/grass/ticket/895)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@40733 15284696-431f-4ddb-bdfa-cd5b030d7da7
Glynn Clements 15 gadi atpakaļ
vecāks
revīzija
859d2446c3
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  1. 2 0
      raster/r.external/main.c

+ 2 - 0
raster/r.external/main.c

@@ -441,6 +441,8 @@ static void write_fp_format(const char *output, const struct band_info *info)
     if (G_fwrite_key_value(fp, key_val) < 0)
 	G_fatal_error(_("Error writing cell_misc/%s/f_format file"), output);
 
+    fclose(fp);
+
     G_free_key_value(key_val);
 }