Sun Directory Server Enterprise Edition 7.0 Developer's Guide

Memory Concerns

Use slapi_ch_free() if you are replacing the DN with slapi_entry_set_dn().