Skip to content

Commit

Permalink
Avoid pfree'ing the result of getenv
Browse files Browse the repository at this point in the history
References #4327
Closes #419



git-svn-id: http://svn.osgeo.org/postgis/trunk@17522 b70326c6-7e19-0410-871a-916f4a2858ee
  • Loading branch information
Raúl Marín Rodríguez committed Jun 13, 2019
1 parent fe39e0f commit 9d52e00
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions NEWS
Expand Up @@ -21,6 +21,7 @@ Additional features enabled if you are running Proj6+ and PostgreSQL 12
- #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
Expand Down Expand Up @@ -166,6 +167,7 @@ PostGIS 3.0.0
- #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
Expand Down
3 changes: 2 additions & 1 deletion raster/rt_pg/rtpostgis.c
Expand Up @@ -468,7 +468,8 @@ _PG_init(void) {
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,
Expand Down

0 comments on commit 9d52e00

Please sign in to comment.