]> granicus.if.org Git - postgis/commitdiff
Fix #241: ST_LineCrossingDirection Server Crash (Segfault) caused by a typo freeing...
authorMark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>
Tue, 6 Oct 2009 13:43:10 +0000 (13:43 +0000)
committerMark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>
Tue, 6 Oct 2009 13:43:10 +0000 (13:43 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@4608 b70326c6-7e19-0410-871a-916f4a2858ee

postgis/lwgeom_functions_analytic.c

index 5d03cc3ef4777949539121c0f402b42883cfbeb1..a4e45354a0e01751e3fad71d1e03ea8cc28dac40 100644 (file)
@@ -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);