2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-29 13:38:26 +00:00

4146. [bug] Address reference leak that could prevent a clean

shutdown. [RT #37125]
This commit is contained in:
Mark Andrews 2015-06-25 18:36:27 +10:00
parent 2f66e2dd81
commit adbf81335b
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,6 @@
4146. [bug] Address reference leak that could prevent a clean
shutdown. [RT #37125]
4145. [bug] Not all unassociated adb entries where being printed.
[RT #37125]

View File

@ -1686,6 +1686,11 @@ fctx_query(fetchctx_t *fctx, dns_adbaddrinfo_t *addrinfo,
if (query->dispatch != NULL)
dns_dispatch_detach(&query->dispatch);
LOCK(&res->buckets[fctx->bucketnum].lock);
INSIST(fctx->references > 1);
fctx->references--;
UNLOCK(&res->buckets[fctx->bucketnum].lock);
cleanup_query:
if (query->connects == 0) {
query->magic = 0;