mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-25 17:19:43 -05:00
fix leak
This commit is contained in:
parent
574e1f59ee
commit
457b5b11ae
1 changed files with 9 additions and 6 deletions
|
|
@ -108,13 +108,16 @@ syn_is_sup( Syntax *syn, Syntax *sup )
|
|||
void
|
||||
syn_destroy( void )
|
||||
{
|
||||
Syntax *s;
|
||||
Syntax *s;
|
||||
|
||||
avl_free(syn_index, ldap_memfree);
|
||||
while( !LDAP_SLIST_EMPTY(&syn_list) ) {
|
||||
s = LDAP_SLIST_FIRST(&syn_list);
|
||||
LDAP_SLIST_REMOVE_HEAD(&syn_list, ssyn_next);
|
||||
ldap_syntax_free((LDAPSyntax *)s);
|
||||
avl_free( syn_index, ldap_memfree );
|
||||
while( !LDAP_SLIST_EMPTY( &syn_list ) ) {
|
||||
s = LDAP_SLIST_FIRST( &syn_list );
|
||||
LDAP_SLIST_REMOVE_HEAD( &syn_list, ssyn_next );
|
||||
if ( s->ssyn_sups ) {
|
||||
SLAP_FREE( s->ssyn_sups );
|
||||
}
|
||||
ldap_syntax_free( (LDAPSyntax *)s );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue