mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-28 02:29:34 -05:00
Fix memory leak in str2entry
This commit is contained in:
parent
cddf7e0e00
commit
102cb93220
1 changed files with 1 additions and 1 deletions
|
|
@ -139,6 +139,7 @@ str2entry( char *s )
|
|||
}
|
||||
|
||||
rc = dnPretty( NULL, &value, &pdn );
|
||||
free( value.bv_val );
|
||||
if( rc != LDAP_SUCCESS ) {
|
||||
#ifdef NEW_LOGGING
|
||||
LDAP_LOG(( "operation", LDAP_LEVEL_DETAIL1, "str2entry: "
|
||||
|
|
@ -151,7 +152,6 @@ str2entry( char *s )
|
|||
(long) e->e_id,
|
||||
pdn->bv_val ? pdn->bv_val : "", 0 );
|
||||
#endif
|
||||
if( value.bv_val != NULL ) free( value.bv_val );
|
||||
entry_free( e );
|
||||
return NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue