[SCM] PostGIS branch master updated. 3.5.0-393-g224445143

git at osgeo.org git at osgeo.org
Wed Jun 11 07:24:44 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  224445143ed0b1b424c6c34371c8bab08ae8ac8c (commit)
      from  283e2bbe96e2b70d37a6b9a1ea8be7d1ab9e123c (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 224445143ed0b1b424c6c34371c8bab08ae8ac8c
Author: Maksim Korotkov <m.korotkov at postgrespro.ru>
Date:   Tue Jun 10 16:46:59 2025 +0300

    fixed memory leak
    
    Signed-off-by: Maksim Korotkov <m.korotkov at postgrespro.ru>

diff --git a/loader/pgsql2shp-core.c b/loader/pgsql2shp-core.c
index c2895ab23..355ef9a41 100644
--- a/loader/pgsql2shp-core.c
+++ b/loader/pgsql2shp-core.c
@@ -1414,7 +1414,10 @@ ShpDumperOpenTable(SHPDUMPERSTATE *state)
 	if ( getenv("PGCLIENTENCODING") )
 	{
 		char *codepage = encoding2codepage(getenv("PGCLIENTENCODING"));
+		if (!codepage)
+			return SHPDUMPERERR;
 		state->dbf = DBFCreateEx(state->shp_file, codepage);
+		free(codepage);
 	}
 	else
 	{

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

Summary of changes:
 loader/pgsql2shp-core.c | 3 +++
 1 file changed, 3 insertions(+)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list