nxUnexportInterfaceWrapped

Cleans up memory that was used to export a wrapped interface.

Library:LibC
Classification:Novell
Service:NetWare Platform

Syntax

  #include <nks/netware.h>
   
  void nxUnexportInterfaceWrapped (
     void   *reference);
  

Parameters

reference

(IN) Points to a cookie by which the interface was known.

Remarks

The nxUnexportInterfaceWrapped function disposes of the memory that was previously used to wrapper a function passed to nxExportInterfaceWrapped. The value returned in reference by that function is passed to nxUnexportInterfaceWrapped.

If nxUnexportInterfaceWrapped is not called for each created wrapper, NetWare returns a leaked memory error when the service or library is unloaded.

Only service references that are returned by nxExportInterfaceWrapped should be passed to nxUnexportInterfaceWrapped.

See Also