[SCM] PostGIS branch stable-3.6 updated. 3.6.1-16-gba50bdfaa
git at osgeo.org
git at osgeo.org
Tue Jan 20 10:21:53 PST 2026
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.6 has been updated
via ba50bdfaa929b9bef44024a941fdf2472b10e9d6 (commit)
via 680639af5bc6e3926c5e89a13814a0a7a73b3250 (commit)
from 928180043ce24b69d35e9c1e8fc968b2adff0e41 (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 ba50bdfaa929b9bef44024a941fdf2472b10e9d6
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date: Tue Jan 20 10:21:38 2026 -0800
News item for 680639af5
diff --git a/NEWS b/NEWS
index 0486c2c46..ee38ad634 100644
--- a/NEWS
+++ b/NEWS
@@ -23,6 +23,7 @@ topogeometry corruption:
(Bas Couwenberg)
- #6020, schema qualify call in ST_MPointFromText (Paul Ramsey)
- #6028, crash indexing malformed empty polygon (Paul Ramsey)
+- GH-841, small memory leak in address_standardizer (Maxim Korotkov)
PostGIS 3.6.1
commit 680639af5bc6e3926c5e89a13814a0a7a73b3250
Author: Maksim Korotkov <m.korotkov at postgrespro.ru>
Date: Tue Jan 20 17:51:57 2026 +0300
Avoid potential NULL dereference in std_free()
After check against NULL the pointer std -> pagc_p was used unsafely.
Found by PostgresPro with Svace Static Analyzer.
Fixes: c6091a4bb ("Prep to move address_standardizer into extensions folder")
Signed-off-by: Maksim Korotkov <m.korotkov at postgrespro.ru>
diff --git a/extensions/address_standardizer/standard.c b/extensions/address_standardizer/standard.c
index 4fe63e3ed..9fed23411 100644
--- a/extensions/address_standardizer/standard.c
+++ b/extensions/address_standardizer/standard.c
@@ -379,13 +379,15 @@ void std_free(STANDARDIZER *std)
{
if ( std == NULL ) return;
DBG("Calling close_stand_process");
- if ( std -> pagc_p != NULL ) close_stand_process( std -> pagc_p ) ;
- if ( std -> pagc_p -> process_errors != NULL ) {
- DBG("Calling close_errors");
- close_errors( std -> pagc_p -> process_errors );
- DBG("Calling FREE_AND_NULL");
- FREE_AND_NULL( std -> pagc_p ) ;
- }
+ if ( std -> pagc_p != NULL ) {
+ close_stand_process( std -> pagc_p ) ;
+ if ( std -> pagc_p -> process_errors != NULL ) {
+ DBG("Calling close_errors");
+ close_errors( std -> pagc_p -> process_errors );
+ }
+ DBG("Calling FREE_AND_NULL");
+ FREE_AND_NULL( std -> pagc_p );
+ }
DBG("Calling close_stand_context");
close_stand_context( std -> misc_stand );
DBG("Calling free");
-----------------------------------------------------------------------
Summary of changes:
NEWS | 1 +
extensions/address_standardizer/standard.c | 16 +++++++++-------
2 files changed, 10 insertions(+), 7 deletions(-)
hooks/post-receive
--
PostGIS
More information about the postgis-tickets
mailing list