[Issue 10347] Fix a memory leak in function comp_convert_asn_to_ldap