[SCM] PostGIS branch stable-3.4 updated. 3.4.4-70-g41069cc79

git at osgeo.org git at osgeo.org
Tue Jan 20 10:44:36 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.4 has been updated
       via  41069cc791b504b91872af598557576d561d8935 (commit)
       via  64c2c66e5f15d92dc105bef53591be239601efbe (commit)
      from  92a107c3ab7b53c4cdff3c749a11d854c30d4142 (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 41069cc791b504b91872af598557576d561d8935
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Tue Jan 20 10:44:18 2026 -0800

    News item for 680639af5

diff --git a/NEWS b/NEWS
index 3d0347ef7..023a91dce 100644
--- a/NEWS
+++ b/NEWS
@@ -39,6 +39,7 @@ Proj 6.1+ required.
   - #5754, ST_ForcePolygonCCW reverses lines (Paul Ramsey)
   - #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.4.4

commit 64c2c66e5f15d92dc105bef53591be239601efbe
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