Function

AuthorizationFree(_:_:)

Frees the memory associated with an authorization reference.

Declaration

func AuthorizationFree(_ authorization: AuthorizationRef, _ flags: AuthorizationFlags) -> OSStatus

Parameters

authorization

The authorization reference to free.

flags

A bit mask. In most cases, pass the constant defaults. To remove all shared and non-shared authorizations, pass the constant destroyRights.

Return Value

Discussion

Call this function when your application no longer needs the authorization reference you created using the function AuthorizationCreate(_:_:_:_:).

See Also

Authorization References

struct AuthorizationFlags

The flags used to specify authorization options.

typealias AuthorizationRef

A pointer to an opaque authorization reference structure.