mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-30 13:30:57 +08:00
More for presentlist_free
This commit is contained in:
parent
4929ad5e81
commit
c4b43c0077
@ -2764,11 +2764,13 @@ presentlist_free( Avlnode *av )
|
||||
Avlnode **a2 = (Avlnode **)av;
|
||||
int i, count = 0;
|
||||
|
||||
for (i=0; i<65536; i++) {
|
||||
if (a2[i])
|
||||
count += avl_free( a2[i], ch_free );
|
||||
if ( av ) {
|
||||
for (i=0; i<65536; i++) {
|
||||
if (a2[i])
|
||||
count += avl_free( a2[i], ch_free );
|
||||
}
|
||||
ch_free( av );
|
||||
}
|
||||
ch_free( av );
|
||||
return count;
|
||||
#else
|
||||
return avl_free( av, ch_free );
|
||||
|
Loading…
Reference in New Issue
Block a user