PreviousNext

Operation Attributes: Memory Management

Use the reflect_deletions attribute to mirror the release of memory from server pointer targets to client pointer targets. When you use the reflect_deletions attribute, memory occupied by pointer targets on the client will be released when the corresponding pointer targets on the server are released. This is only true for pointer targets that are components of [in] parameters of the operation. By default, the mechanism used by RPC to release the pointer targets is the C language free( ) function unless the client code is executing as part of RPC server application code, in which case the rpc_ss_free( ) function is used. You can override the default by calling rpc_ss_set_client_alloc_free( ) or rpc_ss_swap_client_alloc_free( ) before the call to the remote operation.