[SCM] PostGIS branch stable-3.2 updated. 3.2.7-26-g6afa5398c

git at osgeo.org git at osgeo.org
Wed Apr 9 08:32:27 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.2 has been updated
       via  6afa5398c6e8f4a84a326083c6aca84a2a6499d0 (commit)
      from  310a06e40005504b98ba929dac2ce7d6e9edb88a (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 6afa5398c6e8f4a84a326083c6aca84a2a6499d0
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 e42a1e916..1b1218ffe 100644
--- a/topology/postgis_topology.c
+++ b/topology/postgis_topology.c
@@ -3541,7 +3541,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 )
@@ -3611,7 +3611,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