[postgis-tickets] [SCM] PostGIS branch master updated. 3.2.0-628-g04a54560b
git at osgeo.org
git at osgeo.org
Fri Mar 4 12:18:21 PST 2022
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 04a54560b6d6687e0127a6874d987ec817c8bea2 (commit)
from f85baea1795f377f925c0a00d34d447ee147a970 (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 04a54560b6d6687e0127a6874d987ec817c8bea2
Author: Sandro Santilli <strk at kbt.io>
Date: Fri Mar 4 21:18:06 2022 +0100
Clone GBOX before freeing the datum
diff --git a/topology/postgis_topology.c b/topology/postgis_topology.c
index f67af1be7..bd5aeb137 100644
--- a/topology/postgis_topology.c
+++ b/topology/postgis_topology.c
@@ -3060,6 +3060,7 @@ cb_computeFaceMBR(const LWT_BE_TOPOLOGY *topo, LWT_ELEMID face)
StringInfoData sqldata;
StringInfo sql = &sqldata;
const GBOX *box;
+ GBOX *outbox;
MemoryContext oldcontext = CurrentMemoryContext;
initStringInfo(sql);
@@ -3121,6 +3122,7 @@ cb_computeFaceMBR(const LWT_BE_TOPOLOGY *topo, LWT_ELEMID face)
if ( box )
{
POSTGIS_DEBUGF(1, "Face %" LWTFMT_ELEMID " bbox xmin is %.15g", face, box->xmin);
+ outbox = gbox_clone(box);
}
else
{
@@ -3137,7 +3139,7 @@ cb_computeFaceMBR(const LWT_BE_TOPOLOGY *topo, LWT_ELEMID face)
SPI_freetuptable(SPI_tuptable);
- return gbox_clone(box);
+ return outbox;
}
static int
-----------------------------------------------------------------------
Summary of changes:
topology/postgis_topology.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
hooks/post-receive
--
PostGIS
More information about the postgis-tickets
mailing list