Fix memory leak in runtime tests
Project: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/repo Commit: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/commit/da8107e5 Tree: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/tree/da8107e5 Diff: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/diff/da8107e5 Branch: refs/heads/master Commit: da8107e543e84adc29977bd3c4ee30b21040a7f8 Parents: 65bf8ef Author: Nick Wellnhofer <wellnho...@aevum.de> Authored: Wed Sep 7 16:48:36 2016 +0200 Committer: Nick Wellnhofer <wellnho...@aevum.de> Committed: Wed Sep 7 17:22:44 2016 +0200 ---------------------------------------------------------------------- runtime/test/Clownfish/Test/TestCharBuf.c | 2 ++ 1 file changed, 2 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/da8107e5/runtime/test/Clownfish/Test/TestCharBuf.c ---------------------------------------------------------------------- diff --git a/runtime/test/Clownfish/Test/TestCharBuf.c b/runtime/test/Clownfish/Test/TestCharBuf.c index 9cf5bbf..ec5072a 100644 --- a/runtime/test/Clownfish/Test/TestCharBuf.c +++ b/runtime/test/Clownfish/Test/TestCharBuf.c @@ -132,6 +132,8 @@ test_roundtrip(TestBatchRunner *runner) { else { FAIL(runner, "Failed round trip at 0x%04X", (unsigned)code_point); } + + DECREF(cb); } typedef struct {