[GRASS-SVN] r71191 - grass/trunk/lib/lidar

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Jun 19 06:29:59 PDT 2017


Author: mmetz
Date: 2017-06-19 06:29:59 -0700 (Mon, 19 Jun 2017)
New Revision: 71191

Modified:
   grass/trunk/lib/lidar/zones.c
Log:
 lidarlib: free structs

Modified: grass/trunk/lib/lidar/zones.c
===================================================================
--- grass/trunk/lib/lidar/zones.c	2017-06-19 13:29:17 UTC (rev 71190)
+++ grass/trunk/lib/lidar/zones.c	2017-06-19 13:29:59 UTC (rev 71191)
@@ -294,6 +294,9 @@
 	    }
 	}
     }
+    Vect_destroy_cats_struct(categories);
+    Vect_destroy_line_struct(points);
+
     if (npoints > 0) {
 	/* estimated average distance between points in map units */
 	*dist = sqrt(((xmax - xmin) * (ymax - ymin)) / npoints);



More information about the grass-commit mailing list