Browse Source

r.fill.dir: remove temporary files when done (merge from trunk, https://trac.osgeo.org/grass/changeset/67527)

git-svn-id: https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0@67528 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 9 years ago
parent
commit
21f14d8f9f
1 changed files with 4 additions and 0 deletions
  1. 4 0
      raster/r.fill.dir/main.c

+ 4 - 0
raster/r.fill.dir/main.c

@@ -271,6 +271,10 @@ int main(int argc, char **argv)
     Rast_close(dir_id);
     Rast_close(dir_id);
     close(fd);
     close(fd);
 
 
+    unlink(tempfile1);
+    unlink(tempfile2);
+    unlink(tempfile3);
+
     G_free(in_buf);
     G_free(in_buf);
     G_free(out_buf);
     G_free(out_buf);