IP_MsgDestroy

IP_MsgDestroy — frees memory associated with a message.

Syntax

#include <cogent.h>

void IP_MsgDestroy(IP_Msg* message);

Arguments

message

A pointer to a message.

Returns

Nothing.

Description

This function cleans up all memory associated with the message. If the message is marked as dynamic, then the msg portion of the IP_Msg is also freed.

See Also

Messages, IP_MsgCreate