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

Memory Concerns

When you are no longer using the entry, you should free it from memory by calling the slapi_entry_free() function.