mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
free key on error
This commit is contained in:
parent
d5e69f0598
commit
607c2d7441
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue