mirror of
https://github.com/samba-team/samba.git
synced 2025-01-08 21:18:16 +03:00
auth:credentials: SAFE_FREE() -> krb5_free_enctypes()
Reported by Red Hat internal covscan Signed-off-by: Pavel Filipenský <pfilipensky@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
parent
c5778a0fbd
commit
cd60e3fdef
@ -945,7 +945,8 @@ _PUBLIC_ int cli_credentials_get_client_gss_creds(struct cli_credentials *cred,
|
||||
maj_stat = gss_krb5_set_allowable_enctypes(&min_stat, gcc->creds,
|
||||
num_ktypes,
|
||||
(int32_t *) etypes);
|
||||
SAFE_FREE(etypes);
|
||||
krb5_free_enctypes(ccache->smb_krb5_context->krb5_context,
|
||||
etypes);
|
||||
if (maj_stat) {
|
||||
talloc_free(gcc);
|
||||
if (min_stat) {
|
||||
|
Loading…
Reference in New Issue
Block a user