mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-12 17:39:59 -04:00
Merge branch '610-address-memory-leak-on-error-v9_11' into 'v9_11'
Resolve "Address memory leak on error" See merge request isc-projects/bind9!884
This commit is contained in:
commit
df57c4b74b
1 changed files with 3 additions and 0 deletions
|
|
@ -877,6 +877,9 @@ dst_key_fromgssapi(dns_name_t *name, gss_ctx_id_t gssctx, isc_mem_t *mctx,
|
|||
*keyp = key;
|
||||
result = ISC_R_SUCCESS;
|
||||
out:
|
||||
if (result != ISC_R_SUCCESS) {
|
||||
dst_key_free(&key);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue