From: Paul Ramsey Date: Tue, 17 Nov 2009 22:29:40 +0000 (+0000) Subject: Fix a double-free in the unit test for collection extract. X-Git-Tag: 1.5.0b1~212 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=02ab6e17d52c53cfaf7079efec61ecfc2cc7f11d;p=postgis Fix a double-free in the unit test for collection extract. git-svn-id: http://svn.osgeo.org/postgis/trunk@4850 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/liblwgeom/cunit/cu_libgeom.c b/liblwgeom/cunit/cu_libgeom.c index 4133d4be6..edbb75711 100644 --- a/liblwgeom/cunit/cu_libgeom.c +++ b/liblwgeom/cunit/cu_libgeom.c @@ -469,7 +469,7 @@ void test_lwcollection_extract(void) col = lwcollection_extract((LWCOLLECTION*)geom, 1); CU_ASSERT_EQUAL(TYPE_GETTYPE(col->type), MULTIPOINTTYPE); - lwcollection_release(col); + lwfree(col); lwgeom_free(geom); }