Function

AuthorizationFree

Frees the memory associated with an authorization reference.

Declaration

OSStatus AuthorizationFree(AuthorizationRef authorization, AuthorizationFlags flags);

Parameters

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 kAuthorizationFlagDestroyRights.

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

AuthorizationCreate

Creates a new authorization reference and provides an option to authorize or preauthorize rights.

AuthorizationFlags

The flags used to specify authorization options.

AuthorizationRef

A pointer to an opaque authorization reference structure.

kAuthorizationEmptyEnvironment

A constant you use in functions with an environment parameter if you have no environment data to provide.