Commit ea7d5332 authored by Mark Andrews's avatar Mark Andrews
Browse files

address memory leak [RT #44072]

parent 2067cfdb
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment