4293. [bug] Address memory leak on priming query creation failure.

[RT #41512]
This commit is contained in:
Mark Andrews 2016-01-20 16:38:11 +11:00
parent fc7bce5f35
commit 73fbd4c9d3
2 changed files with 4 additions and 0 deletions

View file

@ -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]

View file

@ -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;