[postgis-tickets] r17523 - Avoid pfree'ing the result of getenv
Raul
raul at rmr.ninja
Thu Jun 13 12:43:24 PDT 2019
Author: algunenano
Date: 2019-06-13 00:43:24 -0700 (Thu, 13 Jun 2019)
New Revision: 17523
Modified:
branches/2.5/NEWS
branches/2.5/raster/rt_pg/rtpostgis.c
Log:
Avoid pfree'ing the result of getenv
References #4327
Modified: branches/2.5/NEWS
===================================================================
--- branches/2.5/NEWS 2019-06-13 07:42:31 UTC (rev 17522)
+++ branches/2.5/NEWS 2019-06-13 07:43:24 UTC (rev 17523)
@@ -8,6 +8,7 @@
- #4326, Fix circular arc distance calculation (Paul Ramsey)
- #4380, Simple TIN support to allow viz in QGIS (Paul Ramsey)
- #4388, AddRasterConstraints: Ignore NULLs when generating constraints (Raúl Marín)
+ - #4327, Avoid pfree'ing the result of getenv (Raúl Marín)
PostGIS 2.5.2
Modified: branches/2.5/raster/rt_pg/rtpostgis.c
===================================================================
--- branches/2.5/raster/rt_pg/rtpostgis.c 2019-06-13 07:42:31 UTC (rev 17522)
+++ branches/2.5/raster/rt_pg/rtpostgis.c 2019-06-13 07:43:24 UTC (rev 17523)
@@ -468,7 +468,8 @@
if (strcmp(env, "1") == 0)
boot_postgis_enable_outdb_rasters = true;
- pfree(env);
+ if (env != env_postgis_enable_outdb_rasters)
+ pfree(env);
}
POSTGIS_RT_DEBUGF(
4,
More information about the postgis-tickets
mailing list