[SCM] PostGIS branch stable-3.3 updated. 3.3.7-19-g27328ea40

git at osgeo.org git at osgeo.org
Wed Apr 9 08:32:08 PDT 2025


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "PostGIS".

The branch, stable-3.3 has been updated
       via  27328ea4022ea19f40743ddbebe002cd51f9abc3 (commit)
      from  d7512e548573e8bc3f9b999c78362c4e4c5bcec4 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 27328ea4022ea19f40743ddbebe002cd51f9abc3
Author: amwps290 <huangning0722 at 163.com>
Date:   Wed Apr 9 15:58:54 2025 +0800

    fix PG_FREE_IF_COPY macro parameter position

diff --git a/postgis/lwgeom_export.c b/postgis/lwgeom_export.c
index e2d8731dc..cba082cea 100644
--- a/postgis/lwgeom_export.c
+++ b/postgis/lwgeom_export.c
@@ -394,7 +394,7 @@ Datum LWGEOM_asX3D(PG_FUNCTION_ARGS)
 	if (option & LW_X3D_USE_GEOCOORDS) {
 		if (lwgeom->srid != 4326)
 		{
-			PG_FREE_IF_COPY(geom, 0);
+			PG_FREE_IF_COPY(geom, 1);
 			/** TODO: we need to support UTM and other coordinate systems supported by X3D eventually
 			http://www.web3d.org/documents/specifications/19775-1/V3.2/Part01/components/geodata.html#t-earthgeoids **/
 			elog(ERROR, "Only SRID 4326 is supported for geocoordinates.");
diff --git a/topology/postgis_topology.c b/topology/postgis_topology.c
index 01747aad8..8e3900b00 100644
--- a/topology/postgis_topology.c
+++ b/topology/postgis_topology.c
@@ -3657,7 +3657,7 @@ Datum ST_ModEdgeSplit(PG_FUNCTION_ARGS)
   node_id = lwt_ModEdgeSplit(topo, edge_id, pt, 0);
   POSTGIS_DEBUG(1, "lwt_ModEdgeSplit returned");
   lwgeom_free(lwgeom);
-  PG_FREE_IF_COPY(geom, 3);
+  PG_FREE_IF_COPY(geom, 2);
   lwt_FreeTopology(topo);
 
   if ( node_id == -1 )
@@ -3727,7 +3727,7 @@ Datum ST_NewEdgesSplit(PG_FUNCTION_ARGS)
   node_id = lwt_NewEdgesSplit(topo, edge_id, pt, 0);
   POSTGIS_DEBUG(1, "lwt_NewEdgesSplit returned");
   lwgeom_free(lwgeom);
-  PG_FREE_IF_COPY(geom, 3);
+  PG_FREE_IF_COPY(geom, 2);
   lwt_FreeTopology(topo);
 
   if ( node_id == -1 )

-----------------------------------------------------------------------

Summary of changes:
 postgis/lwgeom_export.c     | 2 +-
 topology/postgis_topology.c | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list