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

Memory Concerns

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

You should free the returned pointer by calling slapi_ch_free() .