mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-01-02 21:09:35 -05:00
fixup lameness cache memory accounting leak.
git-svn-id: file:///svn/unbound/trunk@578 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
eb0deb1301
commit
ab143fd1f8
2 changed files with 3 additions and 1 deletions
|
|
@ -4,6 +4,8 @@
|
|||
with both a CNAME and the NXDOMAIN rcode. Added a test that the
|
||||
rcode is changed to NOERROR (because of the CNAME).
|
||||
- timeout on tcp does not lead to spurious leakage detect.
|
||||
- account memory for name of lame zones, so that memory leakages does
|
||||
not show lame cache growth as a leakage growth.
|
||||
|
||||
31 August 2007: Wouter
|
||||
- can read bind trusted-keys { ... }; files, in a compatibility mode.
|
||||
|
|
|
|||
2
services/cache/infra.c
vendored
2
services/cache/infra.c
vendored
|
|
@ -297,7 +297,7 @@ infra_lame_sizefunc(void* k, void* ATTR_UNUSED(d))
|
|||
{
|
||||
struct infra_lame_key* key = (struct infra_lame_key*)k;
|
||||
return sizeof(*key) + sizeof(struct infra_lame_data)
|
||||
+ lock_get_mem(&key->entry.lock);
|
||||
+ key->namelen + lock_get_mem(&key->entry.lock);
|
||||
}
|
||||
|
||||
/** compare zone names, returns -1, 0, +1 */
|
||||
|
|
|
|||
Loading…
Reference in a new issue