[GRASS-SVN] r58623 - grass/trunk/lib/python/pygrass/modules/grid

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Jan 6 09:31:15 PST 2014


Author: zarch
Date: 2014-01-06 09:31:15 -0800 (Mon, 06 Jan 2014)
New Revision: 58623

Modified:
   grass/trunk/lib/python/pygrass/modules/grid/patch.py
Log:
Free unused memory

Modified: grass/trunk/lib/python/pygrass/modules/grid/patch.py
===================================================================
--- grass/trunk/lib/python/pygrass/modules/grid/patch.py	2014-01-06 17:28:05 UTC (rev 58622)
+++ grass/trunk/lib/python/pygrass/modules/grid/patch.py	2014-01-06 17:31:15 UTC (rev 58623)
@@ -57,7 +57,8 @@
         rasts.append(rrasts)
         rpatch_row(rast, rrasts, rbbox)
 
-    for rrast in rasts:
-        for rast_ in rrast:
-            rast_.close()
+        for rst in rrasts:
+            rst.close()
+            del(rst)
+
     rast.close()



More information about the grass-commit mailing list