Sun Java System Directory Server Enterprise Edition 6.1 Developer's Guide

Memory Concerns

Allocate the parameter block using slapi_pblock_new() before calling this function.

The entry is consumed during the call to slapi_add_internal_pb() . The LDAPControls are not consumed.

Free the parameter block after calling slapi_add_internal_pb() .