[postgis-tickets] r17522 - Avoid pfree'ing the result of getenv
Raul
raul at rmr.ninja
Thu Jun 13 12:42:31 PDT 2019
Author: algunenano
Date: 2019-06-13 00:42:31 -0700 (Thu, 13 Jun 2019)
New Revision: 17522
Modified:
trunk/NEWS
trunk/raster/rt_pg/rtpostgis.c
Log:
Avoid pfree'ing the result of getenv
References #4327
Closes https://github.com/postgis/postgis/pull/419/
Modified: trunk/NEWS
===================================================================
--- trunk/NEWS 2019-06-12 22:57:51 UTC (rev 17521)
+++ trunk/NEWS 2019-06-13 07:42:31 UTC (rev 17522)
@@ -21,6 +21,7 @@
- #4352, Use CREATE OR REPLACE AGGREGATE for PG12+ (Raúl Marín)
- #4334, Fix upgrade issues related to renamed parameters (Raúl Marín)
- #4388, AddRasterConstraints: Ignore NULLs when generating constraints (Raúl Marín)
+ - #4327, Avoid pfree'ing the result of getenv (Raúl Marín)
PostGIS 3.0.0alpha1
2019/05/26
@@ -166,6 +167,7 @@
- #4352, Use CREATE OR REPLACE AGGREGATE for PG12+ (Raúl Marín)
- #4334, Fix upgrade issues related to renamed function parameters (Raúl Marín)
- #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.0
Modified: trunk/raster/rt_pg/rtpostgis.c
===================================================================
--- trunk/raster/rt_pg/rtpostgis.c 2019-06-12 22:57:51 UTC (rev 17521)
+++ trunk/raster/rt_pg/rtpostgis.c 2019-06-13 07:42:31 UTC (rev 17522)
@@ -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