From a0e590a0f3ea87b7616cf197edd240b7b99fcc2e Mon Sep 17 00:00:00 2001 From: "U. Artie Eoff" Date: Fri, 23 Mar 2012 10:01:23 -0700 Subject: Add simple memory leak check to all tests. Wrap all tests with a memory balance check to detect potential memory leaks. Fixed a few tests that had memory leaks contained in the tests themselves. Signed-off-by: U. Artie Eoff --- tests/array-test.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/array-test.c') diff --git a/tests/array-test.c b/tests/array-test.c index cb62713..2be369f 100644 --- a/tests/array-test.c +++ b/tests/array-test.c @@ -133,4 +133,6 @@ TEST(array_for_each) wl_array_for_each(p, &array) assert(*p == elements[i++]); assert(i == 5); + + wl_array_release(&array); } -- cgit v1.2.3-70-g09d2