PreviousNext

Using the Memory Management Defaults

If it does not matter to the client code which memory allocation routine the RPC client stubs use, the client code should call the rpc_ss_client_free( ) routine to free any memory that the client stub allocates and returns. The rpc_ss_client_free( ) routine uses the current free routine that is in effect. Client code that uses rpc_ss_client_free( ) must use caution if it calls other routines before it frees all of the pieces of allocated storage with rpc_ss_client_free( ), because it is possible that the called code has been written so that it swaps in a different allocation/free pair without reestablishing the previous allocation/free pair on exit.