Repository: lucy-clownfish Updated Branches: refs/heads/CLOWNFISH-33-duplicate-hash-entries d7ff547ac -> 439a15663
Fix memory leak in test Project: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/repo Commit: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/commit/439a1566 Tree: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/tree/439a1566 Diff: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/diff/439a1566 Branch: refs/heads/CLOWNFISH-33-duplicate-hash-entries Commit: 439a156639a573d5d688045f7823ad509723e03d Parents: d7ff547 Author: Nick Wellnhofer <[email protected]> Authored: Tue Apr 14 17:51:29 2015 +0200 Committer: Nick Wellnhofer <[email protected]> Committed: Tue Apr 14 17:51:29 2015 +0200 ---------------------------------------------------------------------- runtime/core/Clownfish/Test/TestHash.c | 2 ++ 1 file changed, 2 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/439a1566/runtime/core/Clownfish/Test/TestHash.c ---------------------------------------------------------------------- diff --git a/runtime/core/Clownfish/Test/TestHash.c b/runtime/core/Clownfish/Test/TestHash.c index 0c984ca..9d14e1d 100644 --- a/runtime/core/Clownfish/Test/TestHash.c +++ b/runtime/core/Clownfish/Test/TestHash.c @@ -236,6 +236,8 @@ test_store_skips_tombstone(TestBatchRunner *runner) { if (slot == (Str_Hash_Sum(two) & mask)) { break; } + DECREF(two); + two = NULL; } Hash_Store(hash, (Obj*)one, (Obj*)CFISH_TRUE);
