35.3. slapi_pblock_init()

Initializes an existing parameter block for re-use.
Syntax

#include "slapi-plugin.h" 

void slapi_pblock_init( Slapi_PBlock *pb );

Parameters

This function takes the following parameter:

pb
Parameter block.
Memory Concerns

The parameter block that is to be freed must have been created using slapi_pblock_new(). When you are finished with the parameter block, you must free it using the slapi_pblock_destroy().

Note

The search results will not be freed from the parameter block by slapi_pblock_init(). Any internal search results must be freed with the slapi_free_search_results_internal() function before calling slapi_pblock_init(), otherwise the search results will be leaked.