The FreeContextBuffer function enables callers of security provider functions to free a memory buffer allocated by the security provider. For example, the InitializeSecurityContext function may allocate a buffer for returning the outbound context token.
SECURITY_STATUS FreeContextBuffer(
PVOID pvContextBuffer // buffer to free
);
If the function succeeds, the return value is SEC_E_OK.
If the function fails, the return value is a nonzero error code.
The FreeContextBuffer function can free any memory allocated by a security package.