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

address memory in dns_view_getsecroots failure

parent 2ddede17
......@@ -3748,8 +3748,7 @@ dns_validator_create(dns_view_t *view, dns_name_t *name, dns_rdatatype_t type,
val->keytable = NULL;
result = dns_view_getsecroots(val->view, &val->keytable);
if (result != ISC_R_SUCCESS)
return (result);
goto cleanup_mutex;
val->keynode = NULL;
val->key = NULL;
val->siginfo = NULL;
......@@ -3782,6 +3781,9 @@ dns_validator_create(dns_view_t *view, dns_name_t *name, dns_rdatatype_t type,
return (ISC_R_SUCCESS);
cleanup_mutex:
DESTROYLOCK(&val->lock);
cleanup_event:
isc_task_detach(&tclone);
isc_event_free(ISC_EVENT_PTR(&event));
......
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