[SCM] PostGIS branch master updated. 3.6.0rc2-87-g22cc67618
git at osgeo.org
git at osgeo.org
Tue Oct 7 11:53:01 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, master has been updated
via 22cc676181c68cb32bc932e1570c2766964ff847 (commit)
via 2b76117f390b19cfd21daed40fb150322e8802c1 (commit)
from 419aa9519f970de44b1bd1ed770f5932f53c0c36 (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 22cc676181c68cb32bc932e1570c2766964ff847
Merge: 419aa9519 2b76117f3
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date: Tue Oct 7 11:52:57 2025 -0700
Merge branch 'ProjectMutilation-fix-memleak'
commit 2b76117f390b19cfd21daed40fb150322e8802c1
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