[postgis-tickets] [SCM] PostGIS branch master updated. 3.1.0rc1-36-gc514256
git at osgeo.org
git at osgeo.org
Sat Jan 9 02:33:45 PST 2021
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 c514256e6c53dcfd3c2239659acc2f53439a74a3 (commit)
from 9e68f84879076487366d03e02dea237976545633 (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 c514256e6c53dcfd3c2239659acc2f53439a74a3
Author: Sandro Santilli <strk at kbt.io>
Date: Sat Jan 9 11:32:40 2021 +0100
Release unneeded memory earlier, from ST_MakeValid
diff --git a/postgis/lwgeom_geos_clean.c b/postgis/lwgeom_geos_clean.c
index 6176e0a..fbec291 100644
--- a/postgis/lwgeom_geos_clean.c
+++ b/postgis/lwgeom_geos_clean.c
@@ -76,6 +76,10 @@ Datum ST_MakeValid(PG_FUNCTION_ARGS)
}
out = geometry_serialize(lwgeom_out);
+ if ( lwgeom_out != lwgeom_in ) {
+ lwgeom_free(lwgeom_out);
+ }
+ PG_FREE_IF_COPY(in, 0);
PG_RETURN_POINTER(out);
}
-----------------------------------------------------------------------
Summary of changes:
postgis/lwgeom_geos_clean.c | 4 ++++
1 file changed, 4 insertions(+)
hooks/post-receive
--
PostGIS
More information about the postgis-tickets
mailing list