db2secPluginTerm API - Clean up group plug-in resources

Frees resources used by the group-retrieval plug-in.

This API is called by the Db2® database manager just before it unloads the group-retrieval plug-in. It should be implemented in a manner that it does a proper cleanup of any resources the plug-in library holds, for example, free any memory allocated by the plug-in, close files that are still open, and close network connections. The plug-in is responsible for keeping track of these resources in order to free them. This API is not called on any Windows operating systems.

API and data structure syntax

     SQL_API_RC ( SQL_API_FN *db2secPluginTerm)
                           ( char      **errormsg,
                             db2int32 *errormsglen );

db2secPluginTerm API parameters

errormsg
Output. A pointer to the address of an ASCII error message string allocated by the plug-in that can be returned in this parameter if the db2secPluginTerm API execution is not successful.
errormsglen
Output. A pointer to an integer that indicates the length in bytes of the error message string in errormsg parameter.