diff --git a/basilisk/basilisk.c b/basilisk/basilisk.c index 6306efdf9..9574fef5e 100755 --- a/basilisk/basilisk.c +++ b/basilisk/basilisk.c @@ -884,7 +884,7 @@ void basilisks_loop(void *arg) if ( pending->dependents == 0 || pending->childrendone >= pending->numchildren ) { HASH_DELETE(hh,myinfo->basilisks.issued,pending); - if ( --pending->refcount == 0 ) + if ( --pending->refcount == 0 && 0 ) { if ( pending->dependents != 0 ) free(pending->dependents);