mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-21 22:34:08 -05:00
More for presentlist_free
This commit is contained in:
parent
4929ad5e81
commit
c4b43c0077
1 changed files with 6 additions and 4 deletions
|
|
@ -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 a new issue