[SCM] PostGIS branch stable-3.1 updated. 3.1.11-19-gadaa1630e
git at osgeo.org
git at osgeo.org
Wed Apr 9 08:33:55 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.1 has been updated
via adaa1630e8722de3c6e613f1ab6ad6e95f84153b (commit)
from 4682e8cc95e835f483c545d988df7f086acf5b95 (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 adaa1630e8722de3c6e613f1ab6ad6e95f84153b
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 a7a864549..fed5e8bee 100644
--- a/postgis/lwgeom_export.c
+++ b/postgis/lwgeom_export.c
@@ -380,7 +380,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 f7ba49367..49630edfe 100644
--- a/topology/postgis_topology.c
+++ b/topology/postgis_topology.c
@@ -3341,7 +3341,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 )
@@ -3411,7 +3411,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