- free ldap-messages of type result
- free ldap-messages of type entry if and only if ldap_first_entry()
converted from a result into an entry
- don't free ldap-messages of type entry
- entries depend on results, so don't free result before entries
derived from it
sense to put diffrent types of ldap-messages (they all live in a
single type LDAPMessage on the evil C side) in appropriate records
since the type of a ldap-message keeps changing in an unpredictable
way. Use the API call ldap-message-type instead.