[postgis-tickets] r15321 - Clone LWGEOM in aggregation step

bjorn at wololo.org bjorn at wololo.org
Sun Mar 5 03:58:54 PST 2017


Author: bjornharrtell
Date: 2017-03-05 03:58:54 -0800 (Sun, 05 Mar 2017)
New Revision: 15321

Modified:
   trunk/postgis/geobuf.c
Log:
Clone LWGEOM in aggregation step
References #3720

Modified: trunk/postgis/geobuf.c
===================================================================
--- trunk/postgis/geobuf.c	2017-02-28 20:39:07 UTC (rev 15320)
+++ trunk/postgis/geobuf.c	2017-03-05 11:58:54 UTC (rev 15321)
@@ -540,7 +540,7 @@
 	if (!datum)
 		lwerror("geobuf_agg_transfn: geometry column cannot be null");
 	gs = (GSERIALIZED *) PG_DETOAST_DATUM(datum);
-	lwgeom = lwgeom_from_gserialized(gs);
+	lwgeom = lwgeom_clone_deep(lwgeom_from_gserialized(gs));
 
 	feature = encode_feature(ctx);
 



More information about the postgis-tickets mailing list