Commit 102cb932 authored by Howard Chu's avatar Howard Chu
Browse files

Fix memory leak in str2entry

parent cddf7e0e
......@@ -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;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment