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

Memory Concerns

The structure that is returned should be freed by calling ldap_control_free(3LDAP) , an LDAP API function.