[SCM] PostGIS branch stable-3.5 updated. 3.5.3-67-g4991a8dd1

git at osgeo.org git at osgeo.org
Tue Oct 7 12:10:48 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, stable-3.5 has been updated
       via  4991a8dd1cf17db8afa5391a8dfe668b0182b6a2 (commit)
      from  89ebcc501e570813f576d7aae785f7e88e395db9 (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 4991a8dd1cf17db8afa5391a8dfe668b0182b6a2
Author: Maksim Korotkov <m.korotkov at postgrespro.ru>
Date:   Tue Oct 7 15:46:55 2025 +0300

    address_standardizer: fixed memory leak
    The memory was not released in case of error handling.
    
    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 8a4b9abe1..4fe63e3ed 100644
--- a/extensions/address_standardizer/standard.c
+++ b/extensions/address_standardizer/standard.c
@@ -623,6 +623,7 @@ STAND_PARAM *init_stand_context(PAGC_GLOBAL *__pagc_global__,ERR_PARAM *__err_pa
 	PAGC_CALLOC_STRUC(__stand_param__,STAND_PARAM,1,__err_param__,NULL) ;
 	if ((__stand_param__->stz_info = create_segments(__err_param__)) == NULL)
 	{
+		FREE_AND_NULL(__stand_param__);
 		return NULL ;
 	}
 	PAGC_CALLOC_2D_ARRAY(__stand_param__->standard_fields, char, MAXOUTSYM, MAXFLDLEN, __err_param__, NULL) ;

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

Summary of changes:
 extensions/address_standardizer/standard.c | 1 +
 1 file changed, 1 insertion(+)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list