Sun Java System Message Queue 4.3 Developer's Guide for C Clients


The MQFreeMessage function frees memory allocated for the message referenced by the specified handle.

MQFreeMessage(MQMessageHandle messageHandle);

Return Value

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.