35.4. slapi_pblock_new()

Creates a new parameter block.
Syntax

#include "slapi-plugin.h"
Slapi_PBlock *slapi_pblock_new();

Returns

This function returns a pointer to the new parameter block.

Memory Concerns

The pblock pointer allocated with this function must always be freed by slapi_pblock_destroy(). The use of other memory de-allocators (for example, free()) is not supported and may lead to crashes or memory leaks.