mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-09 11:32:05 -04:00
4293. [bug] Address memory leak on priming query creation failure.
[RT #41512]
This commit is contained in:
parent
fc7bce5f35
commit
73fbd4c9d3
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. [placeholder]
|
||||
|
||||
4291. [cleanup] Added a required include to dns/forward.h. [RT #41474]
|
||||
|
|
|
|||
|
|
@ -9054,6 +9054,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