Fix the Cred interface #478
Loading…
Reference in New Issue
No description provided.
Delete Branch "fix-cred-interface"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This change adds Cred.Free() and finalizers to prevent memory leaks. It
also makes the interface for Cred more idiomatic and return actual
errors intead of ints.
There's no need to lock the thread here.
There's no need to check for
nil
here.These types tie into the
CredentialsCallback
type. UnlesscredentialsCallback
learns how to deal with this, code is going to break.Done. We might need to update all the other callbacks, then.