[krbdev.mit.edu #9189] git commit

"Greg Hudson via RT" <[email protected]> Tue, 27 Jan 2026 23:49:07 -0500
Newsgroups gmane.comp.encryption.kerberos.bugs
Message-ID <[email protected]>
<URL: https://krbdev.mit.edu/rt/Ticket/Display.html?id=9189 >


Fix krb5 gss_acquire_cred() leak on some errors

When a krb5 acceptor cred is acquired with a specified name, a late
enough failure can leak the acceptor_mprinc field.  Fix this leak by
freeing the field in the acquire_cred_context() error_out cleanup
code.

[[email protected]: rewrote commit message]

(cherry picked from commit a6512164a71ca2ade20d1cf3bf89b3973092eb48)

https://github.com/krb5/krb5/commit/03b856d7a6abfcecf27ad81922178bcd57ce415f
Author: benpope81 <[email protected]>
Committer: Greg Hudson <[email protected]>
Commit: 03b856d7a6abfcecf27ad81922178bcd57ce415f
Branch: krb5-1.22
 src/lib/gssapi/krb5/acquire_cred.c | 1 +
 1 file changed, 1 insertion(+)