Fix ldap_free_result function's parameter

Provide a result_identifier resource (instead of the ldap_connect resource) to the ldap_free_result function