2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-29 05:28:00 +00:00

3419. [bug] Memory leak on validation cancel. [RT #31869]

Squashed commit of the following:

commit 452b07ec7cb31784d90d9c2e45ca708df306302e
Author: Mark Andrews <marka@isc.org>
Date:   Wed Nov 14 23:36:36 2012 +1100

    destroy fetch when canceling validator
This commit is contained in:
Mark Andrews 2012-11-15 11:16:28 +11:00
parent 38bc0509a7
commit 39bfdc2ff9
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,5 @@
3419. [bug] Memory leak on validation cancel. [RT #31869]
3418. [func] New XML schema (version 3.0) for the statistics channel
adds query type statistics at the zone level, and
flattens the XML tree and uses compressed format to

View File

@ -4273,9 +4273,11 @@ dns_validator_cancel(dns_validator_t *validator) {
}
UNLOCK(&validator->lock);
/* Need to cancel fetch outside validator lock */
if (fetch != NULL)
/* Need to cancel and destroy the fetch outside validator lock */
if (fetch != NULL) {
dns_resolver_cancelfetch(fetch);
dns_resolver_destroyfetch(&fetch);
}
}
static void