[GRASS-SVN] r62478 - in grass/branches/releasebranch_7_0: . raster/r.viewshed

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Oct 29 07:29:39 PDT 2014


Author: annakrat
Date: 2014-10-29 07:29:39 -0700 (Wed, 29 Oct 2014)
New Revision: 62478

Modified:
   grass/branches/releasebranch_7_0/
   grass/branches/releasebranch_7_0/raster/r.viewshed/grass.cpp
Log:
r.viewshed: fix small memory leak reported by coverity (merge from trunk, r62477)


Property changes on: grass/branches/releasebranch_7_0
___________________________________________________________________
Modified: svn:mergeinfo
   - /grass/trunk:61095,61098-61099,61788,61897,62141,62327,62346,62352,62354,62356,62360,62364,62415,62425,62438,62440,62462
   + /grass/trunk:61095,61098-61099,61788,61897,62141,62327,62346,62352,62354,62356,62360,62364,62415,62425,62438,62440,62462,62477

Modified: grass/branches/releasebranch_7_0/raster/r.viewshed/grass.cpp
===================================================================
--- grass/branches/releasebranch_7_0/raster/r.viewshed/grass.cpp	2014-10-29 14:27:57 UTC (rev 62477)
+++ grass/branches/releasebranch_7_0/raster/r.viewshed/grass.cpp	2014-10-29 14:29:39 UTC (rev 62478)
@@ -658,7 +658,8 @@
 	Rast_put_row(outfd, outrast, type);
     }				/* for i */
     G_percent(1, 1, 1);
-    
+
+    G_free(outrast);
     Rast_close(outfd);
     return;
 }



More information about the grass-commit mailing list