[postgis-tickets] r14810 - #3516, ST_Voronoi crashes backend

Daniel Baston dbaston at gmail.com
Sat Mar 26 16:23:49 PDT 2016


Author: dbaston
Date: 2016-03-26 16:23:48 -0700 (Sat, 26 Mar 2016)
New Revision: 14810

Modified:
   trunk/postgis/lwgeom_geos.c
Log:
#3516, ST_Voronoi crashes backend

Modified: trunk/postgis/lwgeom_geos.c
===================================================================
--- trunk/postgis/lwgeom_geos.c	2016-03-24 23:40:07 UTC (rev 14809)
+++ trunk/postgis/lwgeom_geos.c	2016-03-26 23:23:48 UTC (rev 14810)
@@ -3626,10 +3626,10 @@
 		if (!gserialized_get_gbox_p(clip, &clip_envelope))
 		{
 			lwpgerror("Could not determine envelope of clipping geometry.");
-			PG_FREE_IF_COPY(clip, 0);		
+			PG_FREE_IF_COPY(clip, 1);
 			PG_RETURN_NULL();
 		}
-		PG_FREE_IF_COPY(clip, 0);		
+		PG_FREE_IF_COPY(clip, 1);
 	}
 
 	/* Read our input geometry */



More information about the postgis-tickets mailing list