From 0cfc87bd32822e5ba22d8c2b1a26fa60f63ad7fa Mon Sep 17 00:00:00 2001
From: rudb <office@database.ru>
Date: Fri, 19 Jun 2026 15:11:53 +0000
Subject: [PATCH] СУБД RuDB - релиз 2

---
 contrib/postgis/loader/pgsql2shp-core.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/contrib/postgis/loader/pgsql2shp-core.c b/contrib/postgis/loader/pgsql2shp-core.c
index d7441e4..e68139c 100644
--- a/contrib/postgis/loader/pgsql2shp-core.c
+++ b/contrib/postgis/loader/pgsql2shp-core.c
@@ -2091,8 +2091,10 @@
 			{
 				snprintf(state->message, SHPDUMPERMSGLEN, _("Error parsing HEXEWKB for record %d"), state->currow);
 				PQclear(state->fetchres);
+/*#<<<DIA_SVACE_MAJOR*/
 				if (hexewkb) free(hexewkb);
 				if (hexewkb_binary) PQfreemem(hexewkb_binary);
+/*#DIA_SVACE_MAJOR>>>*/
 				return SHPDUMPERERR;
 			}
 
@@ -2136,8 +2138,10 @@
 				snprintf(state->message, SHPDUMPERMSGLEN, _("Unknown WKB type (%d) for record %d"), lwgeom->type, state->currow);
 				PQclear(state->fetchres);
 				SHPDestroyObject(obj);
+/*#<<<DIA_SVACE_MAJOR*/
 				if (hexewkb) free(hexewkb);
 				if (hexewkb_binary) PQfreemem(hexewkb_binary);
+/*#DIA_SVACE_MAJOR>>>*/
 				return SHPDUMPERERR;
 			}
 
@@ -2150,8 +2154,10 @@
 				snprintf(state->message, SHPDUMPERMSGLEN, _("Error writing shape %d"), state->currow);
 				PQclear(state->fetchres);
 				SHPDestroyObject(obj);
+/*#<<<DIA_SVACE_MAJOR*/
 				if (hexewkb) free(hexewkb);
 				if (hexewkb_binary) PQfreemem(hexewkb_binary);
+/*#DIA_SVACE_MAJOR>>>*/
 				return SHPDUMPERERR;
 			}
 
@@ -2167,8 +2173,10 @@
 	state->curresrow++;
 	state->currow++;
 
+/*#<<<DIA_SVACE_MAJOR*/
 	if (hexewkb) free(hexewkb);
 	if (hexewkb_binary) PQfreemem(hexewkb_binary);
+/*#DIA_SVACE_MAJOR>>>*/
 	return SHPDUMPEROK;
 }
 

--
Gitblit v1.10.0