Oracle GlassFish Message Queue 4.4.2 Developer's Guide for C Clients

MQFreeMessage

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.

Parameters

messageHandle

A handle to the message you want to free.

Calling the MQFreeConnection function does not automatically free messages associated with that connection.