mirror of
https://github.com/isc-projects/bind9.git
synced 2026-02-24 10:21:10 -05:00
4146. [bug] Address reference leak that could prevent a clean
shutdown. [RT #37125]
(cherry picked from commit adbf81335b)
This commit is contained in:
parent
f02f4ce874
commit
1ef6de05cd
2 changed files with 8 additions and 0 deletions
3
CHANGES
3
CHANGES
|
|
@ -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]
|
||||
|
||||
|
|
|
|||
|
|
@ -1618,6 +1618,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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue