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

Memory Concerns

This function should be called instead of the standard strdup() C function, and terminates the slapd server with an “out of memory” error message if memory cannot be allocated.

The returned pointer should be freed by calling slapi_ch_free() .