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

Plug memory leak in ldif_parse_line() if ber_strdup( type ) failed && url.

parent b215a103
No related branches found
No related tags found
No related merge requests found
......@@ -226,6 +226,8 @@ done:
if( type == NULL ) {
ber_pvt_log_printf( LDAP_DEBUG_ANY, ldif_debug,
"ldif_parse_line: type malloc failed\n");
if( url )
ber_memfree( value );
ber_memfree( freeme );
return( -1 );
}
......
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