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

[RT #41512]

(cherry picked from commit 73fbd4c9d3)
This commit is contained in:
Mark Andrews 2016-01-20 16:38:11 +11:00
parent 17833da3fd
commit dcc3dd16f6
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. [bug] Build lib/export/dns/gen with native compiler.
[RT #41502]

View file

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