mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-12 11:40:00 -04:00
4293. [bug] Address memory leak on priming query creation failure.
[RT #41512]
(cherry picked from commit 73fbd4c9d3)
This commit is contained in:
parent
17833da3fd
commit
dcc3dd16f6
2 changed files with 4 additions and 0 deletions
3
CHANGES
3
CHANGES
|
|
@ -1,3 +1,6 @@
|
|||
4293. [bug] Address memory leak on priming query creation failure.
|
||||
[RT #41512]
|
||||
|
||||
4292. [bug] Build lib/export/dns/gen with native compiler.
|
||||
[RT #41502]
|
||||
|
||||
|
|
|
|||
|
|
@ -8593,6 +8593,7 @@ dns_resolver_prime(dns_resolver_t *res) {
|
|||
&res->primefetch);
|
||||
UNLOCK(&res->primelock);
|
||||
if (result != ISC_R_SUCCESS) {
|
||||
isc_mem_put(res->mctx, rdataset, sizeof(*rdataset));
|
||||
LOCK(&res->lock);
|
||||
INSIST(res->priming);
|
||||
res->priming = ISC_FALSE;
|
||||
|
|
|
|||
Loading…
Reference in a new issue