Commit 607c2d74 authored by Mark Andrews's avatar Mark Andrews
Browse files

free key on error

parent d5e69f05
Pipeline #5587 passed with stages
in 17 minutes and 2 seconds
......@@ -802,6 +802,9 @@ dst_key_fromgssapi(const dns_name_t *name, gss_ctx_id_t gssctx,
*keyp = key;
result = ISC_R_SUCCESS;
out:
if (result != ISC_R_SUCCESS) {
dst_key_free(&key);
}
return result;
}
......
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