Sun GlassFish Message Queue 4.4 Developer's Guide for C Clients


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.



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.