fixup lameness cache memory accounting leak.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@578 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
4a792ac203
commit
d08c863460
@ -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 New Issue
Block a user