The stubs call the type_free_xmit function to free memory associated with the transmitted data. After the type_from_xmit function converts the transmitted data to its presented type, the memory is no longer needed. The function is defined as:
void __RPC_USER <type>_free_xmit(<xmit_type> __RPC_FAR *);
The parameter is a pointer to the memory that contains the transmitted type.
In this example, the memory contains an array that is in a single structure. The function DOUBLE_LINK_TYPE_free_xmit uses the user-supplied function midl_user_free to free the memory:
void __RPC_USER DOUBLE_LINK_TYPE_free_xmit(
DOUBLE_XMIT_TYPE __RPC_FAR * pArray)
{
midl_user_free(pArray);
}