Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix defcred leak in krb5 gss_inquire_cred()
Commit 1cd2821 altered the memory management of krb5_gss_inquire_cred(), introducing defcred to act as an owner pointer when the function must acquire a default credential. The commit neglected to update the code to release the default cred along the successful path. The old code does not trigger because cred_handle is now reassigned, so the default credential is leaked. Unify the success and failure cleanup for this function so that defcred is properly released on success. Reported by Pavel Březina. ticket: 9016 tags: pullup target_version: 1.19-next target_version: 1.18-next
- Loading branch information