git-svn-id: https://svn.osgeo.org/grass/grass/trunk@40733 15284696-431f-4ddb-bdfa-cd5b030d7da7
@@ -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);
}