mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 16:49:39 -05:00
Plug memory leak in ldif_parse_line() if ber_strdup( type ) failed && url.
This commit is contained in:
parent
b215a1039b
commit
cccc8702c6
1 changed files with 2 additions and 0 deletions
|
|
@ -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 );
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue