AuthorizationFree(_:_:)
Frees the memory associated with an authorization reference.
Declaration
func AuthorizationFree(_ authorization: AuthorizationRef, _ flags: AuthorizationFlags) -> OSStatusParameters
- authorization:
The authorization reference to free.
- flags:
A bit mask. In most cases, pass the constant Kauthorizationflagdefaults. To remove all shared and non-shared authorizations, pass the constant Destroyrights.
Return Value
A result code. See Authorization Services Result Codes.
Discussion
Call this function when your application no longer needs the authorization reference you created using the function AuthorizationCreate(_:_:_:_:).