[SCM] PostGIS branch stable-3.2 updated. 3.2.7-61-g1eee9c10d

git at osgeo.org git at osgeo.org
Tue Jan 20 10:44:28 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.2 has been updated
       via  1eee9c10d84fcddbe737692f34fa1ab80dc84771 (commit)
       via  b34235de6704518e88aaa9266cc3bec81ff34a15 (commit)
      from  8d8651f823b5799f1385acf121de39261d5032dd (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 1eee9c10d84fcddbe737692f34fa1ab80dc84771
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Tue Jan 20 10:44:21 2026 -0800

    News item for 680639af5

diff --git a/NEWS b/NEWS
index 8e80e68f4..8b5dbf815 100644
--- a/NEWS
+++ b/NEWS
@@ -25,6 +25,7 @@ Proj 4.9+ required.
  - #5962, Consistent clipping of MULTI/POINT (Paul Ramsey)
  - #5989, CurvePolygon distance error (Paul Ramsey)
  - #6028, Crash indexing malformed empty polygon (Paul Ramsey)
+ - GH-841, small memory leak in address_standardizer (Maxim Korotkov)
 
 
 PostGIS 3.2.8

commit b34235de6704518e88aaa9266cc3bec81ff34a15
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