]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix alloc_reg_release for longer uptime in out of memory conditions.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 1 Oct 2010 12:04:12 +0000 (12:04 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 1 Oct 2010 12:04:12 +0000 (12:04 +0000)
git-svn-id: file:///svn/unbound/trunk@2270 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
util/alloc.c

index 39e257253e1227d1316eb37c8b7b9d71a6d53577..b17b096060857c15d1eca0ce6fc22c6822c6dfce 100644 (file)
@@ -1,5 +1,6 @@
 1 October 2010: Wouter
        - test for unbound-anchor. fix for reading certs.
+       - Fix alloc_reg_release for longer uptime in out of memory conditions.
 
 28 September 2010: Wouter
        - unbound-anchor working, it creates or updates a root.key file.
index 49fa4f3433e2e8f2f717d6eb6efe30cb4ca4e906..b5ccd96b42987cf2a25ce2e3295aaa6a07cbe142 100644 (file)
@@ -322,6 +322,7 @@ alloc_reg_release(struct alloc_cache* alloc, struct regional* r)
                regional_destroy(r);
                return;
        }
+       if(!r) return;
        regional_free_all(r);
        log_assert(r->next == NULL);
        r->next = (char*)alloc->reg_list;