[postgis-tickets] r16434 - test_rect_tree_contains_point: Fix memory leaks
Raul
raul at rmr.ninja
Tue Feb 27 09:42:56 PST 2018
Author: algunenano
Date: 2018-02-27 09:42:55 -0800 (Tue, 27 Feb 2018)
New Revision: 16434
Modified:
trunk/liblwgeom/cunit/cu_measures.c
Log:
test_rect_tree_contains_point: Fix memory leaks
Closes #4026
Closes https://github.com/postgis/postgis/pull/216
Modified: trunk/liblwgeom/cunit/cu_measures.c
===================================================================
--- trunk/liblwgeom/cunit/cu_measures.c 2018-02-27 14:19:46 UTC (rev 16433)
+++ trunk/liblwgeom/cunit/cu_measures.c 2018-02-27 17:42:55 UTC (rev 16434)
@@ -232,7 +232,10 @@
/* 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 @@
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
*/
More information about the postgis-tickets
mailing list