From d8f2ffbe93c16d7b5720afba68229efc196abfdc Mon Sep 17 00:00:00 2001 From: Mark Cave-Ayland Date: Tue, 6 Oct 2009 13:43:10 +0000 Subject: [PATCH] Fix #241: ST_LineCrossingDirection Server Crash (Segfault) caused by a typo freeing the wrong parameter. git-svn-id: http://svn.osgeo.org/postgis/trunk@4608 b70326c6-7e19-0410-871a-916f4a2858ee --- postgis/lwgeom_functions_analytic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/postgis/lwgeom_functions_analytic.c b/postgis/lwgeom_functions_analytic.c index 5d03cc3ef..a4e45354a 100644 --- a/postgis/lwgeom_functions_analytic.c +++ b/postgis/lwgeom_functions_analytic.c @@ -991,7 +991,7 @@ Datum ST_LineCrossingDirection(PG_FUNCTION_ARGS) rv = lwline_crossing_direction(l1, l2); PG_FREE_IF_COPY(geom1, 0); - PG_FREE_IF_COPY(geom2, 0); + PG_FREE_IF_COPY(geom2, 1); PG_RETURN_INT32(rv); -- 2.50.1