[Issue 10347] New: Fix a memory leak in function comp_convert_asn_to_ldap