Commit adbf8133 authored by Mark Andrews's avatar Mark Andrews
Browse files

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

                        shutdown. [RT #37125]
parent 2f66e2dd
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]
......
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment