The MQFreeMessage function frees memory allocated for the message referenced by the specified handle.
MQFreeMessage(MQMessageHandle messageHandle); |
MQStatus. See the MQStatusIsError() function for more information.
A handle to the message you want to free.
Calling the MQFreeConnection function does not automatically free messages associated with that connection.