Missing destroy(s) for rwlocks, mutexes and conditions
It was reported to us that there's a runaway memory leak on FreeBSD which was identified as missing dtor for pthread primitives:
-
sock->condin netmgr - the one causing runaway memory use -
worker->lock- one per worker - rwlocks in db.c and dlz.c - initialized once per
named(fixing would require dtor at library unload, not worth fixing) - rwlock in
lib/*/result.c- initialized once pernamed(fixing would require dtor at library unload, not worth fixing)