]> granicus.if.org Git - postgis/commitdiff
Properly release memory in lwmline_clip_to_ordinate_range (see #1102)
authorSandro Santilli <strk@keybit.net>
Wed, 6 Jul 2011 14:55:39 +0000 (14:55 +0000)
committerSandro Santilli <strk@keybit.net>
Wed, 6 Jul 2011 14:55:39 +0000 (14:55 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7611 b70326c6-7e19-0410-871a-916f4a2858ee

liblwgeom/lwalgorithm.c

index 18b1c177db25c605e7531ffb444e64ad78b2142c..c8937691400c49af3aac4175e09ee924b9c4095d 100644 (file)
@@ -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);
                        }
                }