Skip to content
Snippets Groups Projects
Commit ede86e4d authored by Hallvard Furuseth's avatar Hallvard Furuseth
Browse files

Memory leaks: Values from ldap_dn2ufn and ldap_get_dn were not freed.

parent f0688d71
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment