[GRASS-SVN] r62477 - grass/trunk/raster/r.viewshed
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Oct 29 07:27:58 PDT 2014
Author: annakrat
Date: 2014-10-29 07:27:57 -0700 (Wed, 29 Oct 2014)
New Revision: 62477
Modified:
grass/trunk/raster/r.viewshed/grass.cpp
Log:
r.viewshed: fix small memory leak reported by coverity
Modified: grass/trunk/raster/r.viewshed/grass.cpp
===================================================================
--- grass/trunk/raster/r.viewshed/grass.cpp 2014-10-29 11:21:07 UTC (rev 62476)
+++ grass/trunk/raster/r.viewshed/grass.cpp 2014-10-29 14:27:57 UTC (rev 62477)
@@ -656,7 +656,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