From 2d143bacde05e1d1e2cee2358ffd203ef5ae71e3 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Wed, 6 Jul 2011 14:55:39 +0000 Subject: [PATCH] Properly release memory in lwmline_clip_to_ordinate_range (see #1102) git-svn-id: http://svn.osgeo.org/postgis/trunk@7611 b70326c6-7e19-0410-871a-916f4a2858ee --- liblwgeom/lwalgorithm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/liblwgeom/lwalgorithm.c b/liblwgeom/lwalgorithm.c index 18b1c177d..c89376914 100644 --- a/liblwgeom/lwalgorithm.c +++ b/liblwgeom/lwalgorithm.c @@ -426,6 +426,7 @@ LWCOLLECTION *lwmline_clip_to_ordinate_range(LWMLINE *mline, int ordinate, doubl } /* Shallow free the struct, leaving the geoms behind. */ if ( col->bbox ) lwfree(col->bbox); + lwfree(col->geoms); lwfree(col); } } -- 2.50.1