[SCM] PostGIS branch master updated. 3.5.0-254-g5ae253cb6

git at osgeo.org git at osgeo.org
Wed Apr 9 08:29:58 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, master has been updated
       via  5ae253cb6f7e598c735360688a5b36f35df8c239 (commit)
      from  f8187a32023d81aef97ddc3af0023c5d09c287eb (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 5ae253cb6f7e598c735360688a5b36f35df8c239
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 d127d8dcd..9a16ad17f 100644
--- a/topology/postgis_topology.c
+++ b/topology/postgis_topology.c
@@ -3659,7 +3659,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 )
@@ -3729,7 +3729,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