RpcSsFree function (rpcndr.h)

The RpcSsFree function releases memory allocated by RpcSsAllocate.

Syntax

void RpcSsFree(
  void *NodeToFree
);

Parameters

NodeToFree

Pointer to memory allocated by RpcSsAllocate or RpcSmAllocate.

Return value

None

Remarks

An application uses RpcSsFree to free memory that was allocated with RpcSsAllocate. In cases where the stub allocates the memory for the environment, RpcSsFree can also be used to release memory. For more information, see Memory Management.

Note that the handle of the thread calling RpcSsFree must match the handle of the thread that allocated the memory by calling RpcSsAllocate. Use RpcSsGetThreadHandle and RpcSsSetThreadHandle to pass handles from thread to thread.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps | UWP apps]
Minimum supported server Windows 2000 Server [desktop apps | UWP apps]
Target Platform Windows
Header rpcndr.h (include Rpc.h)
Library Rpcrt4.lib
DLL Rpcrt4.dll

See also

RpcSmFree

RpcSsAllocate

RpcSsGetThreadHandle

RpcSsSetThreadHandle