[SCM] PostGIS branch master updated. 3.5.0-449-g78f9f7ad7

git at osgeo.org git at osgeo.org
Thu Jul 10 22:41:56 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  78f9f7ad7322265989946a14f67acd8bf8f3d80c (commit)
      from  e3e7ae72c1863fd1369ff23555d0acf495d196c9 (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 78f9f7ad7322265989946a14f67acd8bf8f3d80c
Author: Loïc Bartoletti <loic.bartoletti at oslandia.com>
Date:   Fri Jul 11 07:41:47 2025 +0200

    fix(lwgeom_ogc): clean up before returning

diff --git a/postgis/lwgeom_ogc.c b/postgis/lwgeom_ogc.c
index 6e9f26912..d38fb1390 100644
--- a/postgis/lwgeom_ogc.c
+++ b/postgis/lwgeom_ogc.c
@@ -386,7 +386,11 @@ Datum LWGEOM_geometryn_collection(PG_FUNCTION_ARGS)
 
 	/* If returning the original geometry */
 	if (subgeom == lwgeom)
+	{
+		lwgeom_free(lwgeom);
+		PG_FREE_IF_COPY(geom, 0);
 		PG_RETURN_POINTER(geom);
+	}
 
 	subgeom->srid = lwgeom->srid;
 	/* COMPUTE_BBOX==TAINTING */

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

Summary of changes:
 postgis/lwgeom_ogc.c | 4 ++++
 1 file changed, 4 insertions(+)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list