]> granicus.if.org Git - postgis/commitdiff
Fix a double-free in the unit test for collection extract.
authorPaul Ramsey <pramsey@cleverelephant.ca>
Tue, 17 Nov 2009 22:29:40 +0000 (22:29 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Tue, 17 Nov 2009 22:29:40 +0000 (22:29 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@4850 b70326c6-7e19-0410-871a-916f4a2858ee

liblwgeom/cunit/cu_libgeom.c

index 4133d4be6781862d61a7facbe552c0c09cf622ae..edbb75711504134885d30cbf4f561ac5ec33c2b1 100644 (file)
@@ -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);
        
 }