[postgis-tickets] r15640 - #3405 Memory leak in lwgeom_to_points

Paul Ramsey pramsey at cleverelephant.ca
Wed Sep 6 11:29:41 PDT 2017


Author: pramsey
Date: 2017-09-06 11:29:41 -0700 (Wed, 06 Sep 2017)
New Revision: 15640

Modified:
   trunk/liblwgeom/lwgeom_geos.c
Log:
#3405 Memory leak in lwgeom_to_points


Modified: trunk/liblwgeom/lwgeom_geos.c
===================================================================
--- trunk/liblwgeom/lwgeom_geos.c	2017-09-06 17:52:49 UTC (rev 15639)
+++ trunk/liblwgeom/lwgeom_geos.c	2017-09-06 18:29:41 UTC (rev 15640)
@@ -1882,6 +1882,7 @@
 				}
 				/* Just free the shell, leave the underlying lwpoints alone, as they
 				   are now owed by the returning multipoint */
+				lwfree(sub_mpt->geoms);
 				lwgeom_release((LWGEOM*)sub_mpt);
 			}
 		}



More information about the postgis-tickets mailing list