[GRASS-SVN] r43679 - grass/trunk/raster/r.regression.line

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Sep 24 13:18:04 EDT 2010


Author: mmetz
Date: 2010-09-24 17:18:04 +0000 (Fri, 24 Sep 2010)
New Revision: 43679

Modified:
   grass/trunk/raster/r.regression.line/main.c
Log:
clean up after reading maps

Modified: grass/trunk/raster/r.regression.line/main.c
===================================================================
--- grass/trunk/raster/r.regression.line/main.c	2010-09-24 16:34:47 UTC (rev 43678)
+++ grass/trunk/raster/r.regression.line/main.c	2010-09-24 17:18:04 UTC (rev 43679)
@@ -104,6 +104,10 @@
 	    count++;
 	}
     }
+    Rast_close(map1_fd);
+    Rast_close(map2_fd);
+    G_free(map1_buf);
+    G_free(map2_buf);
 
     B = (sumXY - sumX * sumY / count) / (sumsqX - sumX * sumX / count);
     R = (sumXY - sumX * sumY / count) /



More information about the grass-commit mailing list