From 02ab6e17d52c53cfaf7079efec61ecfc2cc7f11d Mon Sep 17 00:00:00 2001 From: Paul Ramsey Date: Tue, 17 Nov 2009 22:29:40 +0000 Subject: [PATCH] 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 --- liblwgeom/cunit/cu_libgeom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.50.1