Question about ldap_search_ext_s and memory leak