fixup lameness cache memory accounting leak.

git-svn-id: file:///svn/unbound/trunk@578 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards 2007-09-03 10:08:16 +00:00
parent eb0deb1301
commit ab143fd1f8
2 changed files with 3 additions and 1 deletions

View file

@ -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.

View file

@ -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 */