31.3. slapi_counter_destroy()

Frees a Slapi_Counter structure from memory. Use this with a dynamically allocated Slapi_Counter structure that was obtained by calling slapi_counter_new().
Before calling this function, make sure that the specified counter is no longer in use.
Do not call slapi_counter_destroy() to destroy a counter which was not dynamically allocated.
Syntax

#include "slapi-plugin.h"
void slapi_counter_destroy(Slapi_Counter **counter);

Parameters

This function takes the following parameter:

counter The address of the counter being destroyed.