To allocate any memory for maintaining connection-related information, the IP should use the memory tree passed in as an argument to the OAIP_connect(W) call. This memory should be freed in OAIP_disconnect. Save a reference to the memory tree in the IP handle associated with the connection. Any memory that needs to be allocated during transactions should be done using this memory tree. Do not free the memory tree that is passed in as an argument to OAIP_connect.