diff options
author | U. Artie Eoff <ullysses.a.eoff@intel.com> | 2012-03-23 10:01:23 -0700 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2012-03-24 14:37:42 -0400 |
commit | a0e590a0f3ea87b7616cf197edd240b7b99fcc2e (patch) | |
tree | c02a921de509e6f1a0dc9ab3b45dabdbf7dd86c9 /tests/array-test.c | |
parent | 9086b60d81a48f14b6c48b30e307caa053568548 (diff) |
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 <ullysses.a.eoff@intel.com>
Diffstat (limited to 'tests/array-test.c')
-rw-r--r-- | tests/array-test.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); } |