From 2688d8e58b885be023b7fa84272776f15d32cd38 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Wed, 10 Aug 2005 23:16:23 +0000 Subject: [PATCH] Removed pfree of proj4 text in make_project failure cases (required for error message) git-svn-id: http://svn.osgeo.org/postgis/branches/pgis_1_0@1864 b70326c6-7e19-0410-871a-916f4a2858ee --- lwgeom/lwgeom_transform.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lwgeom/lwgeom_transform.c b/lwgeom/lwgeom_transform.c index b207e3394..6c6837851 100644 --- a/lwgeom/lwgeom_transform.c +++ b/lwgeom/lwgeom_transform.c @@ -294,7 +294,7 @@ Datum transform_geom(PG_FUNCTION_ARGS) input_pj = make_project(input_proj4); if ( (input_pj == NULL) || pj_errno) { - pfree(input_proj4); + //pfree(input_proj4); // we need this for error reporting pfree(output_proj4); pfree(geom); elog(ERROR, "transform: couldn't parse proj4 input string: '%s': %s", input_proj4, pj_strerrno(pj_errno)); @@ -305,7 +305,7 @@ Datum transform_geom(PG_FUNCTION_ARGS) output_pj = make_project(output_proj4); if ((output_pj == NULL)|| pj_errno) { - pfree(output_proj4); + //pfree(output_proj4); // we need this for error reporting pj_free(input_pj); pfree(geom); elog(ERROR, "transform: couldn't parse proj4 output string: '%s': %s", output_proj4, pj_strerrno(pj_errno)); -- 2.40.0