kdc: check_authz free 'cprinc' on success

Change-Id: I1823a4d74c7c2823f2148f694bff1fc064d834ed
This commit is contained in:
Jeffrey Altman
2022-01-16 23:25:06 -05:00
parent ff18c32ae4
commit 423acdfe77

View File

@@ -791,6 +791,7 @@ check_authz(krb5_context context,
goto eacces;
_kdc_audit_setkv_bool((kdc_request_t)reqctx, "authorized", TRUE);
free(cprinc);
return 0;
eacces: