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

MQFreeDestination

The MQFreeDestination function frees memory allocated for the destination referenced by the specified handle.


MQFreeDestination(MQDestinationHandle destinationHandle);

Return Value

MQStatus. See the MQStatusIsError() function for more information.

Parameters

destinationHandle

A handle to the destination you want to free.

Calling the MQFreeConnection or the MQCloseSession function does not automatically free destinations created for the connection or for the session.