The MQFreeSecurityContext function frees the memory allocated by MQGetSecurityContext.
VOID APIENTRY MQFreeSecurityContext( HANDLE hSecurityContext );
None.
The security context buffer is created by MQGetSecurityContext. It contains information MSMQ needs to authenticate messages.