[SCM] PostGIS branch stable-3.2 updated. 3.2.7-55-gdd98c6f88

git at osgeo.org git at osgeo.org
Tue Oct 7 12:11:12 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.2 has been updated
       via  dd98c6f88026cf6f2504bfc2afb88bbd02b530fd (commit)
      from  bd71a9ffef92c6dd34f80d3af03463604695b860 (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 dd98c6f88026cf6f2504bfc2afb88bbd02b530fd
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