mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-15 03:01:09 +08:00
Memory leaks: Values from ldap_dn2ufn and ldap_get_dn were not freed.
This commit is contained in:
parent
f0688d71a1
commit
ede86e4da8
@ -182,11 +182,13 @@ according to the IAFA services template." );
|
||||
ldap_value_free( values );
|
||||
} else {
|
||||
#endif
|
||||
value = strdup( ldap_dn2ufn( ldap_get_dn( ld, result ) ) );
|
||||
value = ldap_dn2ufn( ptr = ldap_get_dn( ld, result ) );
|
||||
free( ptr );
|
||||
if ( (ptr = index( value, ',' )) != NULL )
|
||||
*ptr = '\0';
|
||||
printFormatted( lineLength, FALSE, stdout, "%-19s %s",
|
||||
"Contact:", value );
|
||||
free( value );
|
||||
#if defined(UOFA)
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user