Fix double free

Project: http://git-wip-us.apache.org/repos/asf/lucy/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/93f0c4ec
Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/93f0c4ec
Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/93f0c4ec

Branch: refs/heads/cfc-tests
Commit: 93f0c4ec2f7339edeea25a7236a26891072737cc
Parents: 6ff8c60
Author: Nick Wellnhofer <[email protected]>
Authored: Sun Feb 3 20:33:05 2013 +0100
Committer: Nick Wellnhofer <[email protected]>
Committed: Sun Feb 3 20:33:05 2013 +0100

----------------------------------------------------------------------
 clownfish/compiler/src/CFCTestClass.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy/blob/93f0c4ec/clownfish/compiler/src/CFCTestClass.c
----------------------------------------------------------------------
diff --git a/clownfish/compiler/src/CFCTestClass.c 
b/clownfish/compiler/src/CFCTestClass.c
index f2c4fac..f3f3f96 100644
--- a/clownfish/compiler/src/CFCTestClass.c
+++ b/clownfish/compiler/src/CFCTestClass.c
@@ -86,7 +86,6 @@ S_run_tests(CFCTest *test) {
     {
         CFCClass *should_be_foo = CFCClass_fetch_singleton(neato, "Foo");
         OK(test, should_be_foo == foo, "fetch_singleton");
-        CFCBase_decref((CFCBase*)should_be_foo);
     }
 
     CFCClass *foo_jr

Reply via email to