From: Mark Cave-Ayland Date: Tue, 6 Oct 2009 13:43:10 +0000 (+0000) Subject: Fix #241: ST_LineCrossingDirection Server Crash (Segfault) caused by a typo freeing... X-Git-Tag: 1.5.0b1~404 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d8f2ffbe93c16d7b5720afba68229efc196abfdc;p=postgis 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 --- 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);