]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
No empty if body in nonevent compile. release-0.1
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 9 Mar 2007 14:55:57 +0000 (14:55 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 9 Mar 2007 14:55:57 +0000 (14:55 +0000)
git-svn-id: file:///svn/unbound/trunk@171 be551aaa-1e26-0410-a405-d3ace91eadb9

util/alloc.c

index 7f6ad7566bda9df8a7e39e884f256bb559baef60..933c64a32b36fb7b46b3a1ddfdeb5efd67f87a05 100644 (file)
@@ -77,8 +77,9 @@ alloc_clear(struct alloc_cache* alloc)
        alloc_special_t* p, *np;
        if(!alloc)
                return;
-       if(!alloc->super)
+       if(!alloc->super) {
                lock_quick_destroy(&alloc->lock);
+       }
        if(alloc->super && alloc->quar) {
                /* push entire list into super */
                p = alloc->quar;