From 3b48938865d3f9ae901aab230fb91f71162d3856 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ra=C3=BAl=20Mar=C3=ADn=20Rodr=C3=ADguez?= Date: Tue, 27 Feb 2018 17:42:55 +0000 Subject: [PATCH] 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 --- liblwgeom/cunit/cu_measures.c | 6 ++++++ 1 file changed, 6 insertions(+) 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 */ -- 2.50.1