You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by nw...@apache.org on 2016/09/07 15:49:00 UTC
[3/7] lucy-clownfish git commit: Fix memory leak in runtime tests
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 <we...@aevum.de>
Authored: Wed Sep 7 16:48:36 2016 +0200
Committer: Nick Wellnhofer <we...@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 {