From: Mark Andrews Date: Fri, 6 Jan 2017 07:48:37 +0000 (+1100) Subject: address memory leak [RT #44072] X-Git-Tag: v9.12.0a1~549 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=ea7d5332a6655b7cb3a750e793adb586ba7eae11;p=thirdparty%2Fbind9.git address memory leak [RT #44072] --- diff --git a/lib/dns/tsig.c b/lib/dns/tsig.c index 912d10bf983..69dcc8c8ef1 100644 --- a/lib/dns/tsig.c +++ b/lib/dns/tsig.c @@ -391,7 +391,7 @@ dns_tsigkey_createfromkey(const dns_name_t *name, const dns_name_t *algorithm, dns_name_init(tmpname, NULL); ret = dns_name_dup(algorithm, mctx, tmpname); if (ret != ISC_R_SUCCESS) { - dns_name_free(tmpname, mctx); + isc_mem_put(mctx, tmpname, sizeof(dns_name_t)); goto cleanup_name; } (void)dns_name_downcase(tmpname, tmpname, NULL);