[postgis-tickets] r14935 - Fix memory leak in lwgeom_cluster_2d_kmeans

Daniel Baston dbaston at gmail.com
Mon Jun 6 05:28:22 PDT 2016


Author: dbaston
Date: 2016-06-06 05:28:13 -0700 (Mon, 06 Jun 2016)
New Revision: 14935

Modified:
   trunk/liblwgeom/lwkmeans.c
Log:
Fix memory leak in lwgeom_cluster_2d_kmeans

Modified: trunk/liblwgeom/lwkmeans.c
===================================================================
--- trunk/liblwgeom/lwkmeans.c	2016-06-06 12:24:32 UTC (rev 14934)
+++ trunk/liblwgeom/lwkmeans.c	2016-06-06 12:28:13 UTC (rev 14935)
@@ -216,6 +216,7 @@
 	lwfree(config.centers);
 	lwfree(centers_raw);
 	lwfree(centroids);
+	lwfree(seen);
 
 	/* Good result */
 	if (result == KMEANS_OK)



More information about the postgis-tickets mailing list