mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-30 13:30:57 +08:00
Fix prev commit
This commit is contained in:
parent
e844a6956d
commit
598ef9e685
@ -187,15 +187,17 @@ attrs_free( Attribute *a )
|
||||
{
|
||||
Attribute *b;
|
||||
|
||||
for(b = a ; b != NULL ; b = b->a_next ) {
|
||||
attr_clean( b );
|
||||
if ( !b->a_next )
|
||||
break;
|
||||
if ( a ) {
|
||||
for(b = a ; ; b = b->a_next ) {
|
||||
attr_clean( b );
|
||||
if ( !b->a_next )
|
||||
break;
|
||||
}
|
||||
ldap_pvt_thread_mutex_lock( &attr_mutex );
|
||||
b->a_next = attr_list;
|
||||
attr_list = a;
|
||||
ldap_pvt_thread_mutex_unlock( &attr_mutex );
|
||||
}
|
||||
ldap_pvt_thread_mutex_lock( &attr_mutex );
|
||||
b->a_next = attr_list;
|
||||
attr_list = a;
|
||||
ldap_pvt_thread_mutex_unlock( &attr_mutex );
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user