From: Raúl Marín Rodríguez Date: Tue, 27 Feb 2018 17:42:55 +0000 (+0000) Subject: test_rect_tree_contains_point: Fix memory leaks X-Git-Tag: 2.5.0alpha~92 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3b48938865d3f9ae901aab230fb91f71162d3856;p=postgis test_rect_tree_contains_point: Fix memory leaks Closes #4026 Closes https://github.com/postgis/postgis/pull/216 git-svn-id: http://svn.osgeo.org/postgis/trunk@16434 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/liblwgeom/cunit/cu_measures.c b/liblwgeom/cunit/cu_measures.c index 3da8df8ac..6ca9d0146 100644 --- a/liblwgeom/cunit/cu_measures.c +++ b/liblwgeom/cunit/cu_measures.c @@ -232,6 +232,9 @@ static void test_rect_tree_contains_point(void) /* touching hole corner */ CU_ASSERT_EQUAL(tree_pt(tree, 7, 7), 1); + rect_tree_free(tree); + lwgeom_free(poly); + /********************************************************************** * polygon with hole and concavities @@ -267,6 +270,9 @@ static void test_rect_tree_contains_point(void) CU_ASSERT_EQUAL(tree_pt(tree, 0.5, 6), 1); CU_ASSERT_EQUAL(tree_pt(tree, 0.5, 9), 1); + rect_tree_free(tree); + lwgeom_free(poly); + /********************************************************************** * square */