Destroys the session handle.
#include <ldap.h>
int ldap_destroy (
LDAP *ld
)
(IN) Points to the LDAP session handle.
This function destroys the duplicated session handle and should be used in conjunction with ldap_dup.