mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-25 16:22:53 -05:00
ITS#2409 - fix oidm_destroy
This commit is contained in:
parent
9f5163e602
commit
60ac3f352e
1 changed files with 1 additions and 6 deletions
|
|
@ -72,21 +72,16 @@ oidm_find(char *oid)
|
|||
void
|
||||
oidm_destroy()
|
||||
{
|
||||
|
||||
#ifdef SLAP_NVALUES
|
||||
/* FIXME: this causes a malloc debug error */
|
||||
#else
|
||||
OidMacro *om;
|
||||
while( !LDAP_SLIST_EMPTY( &om_list )) {
|
||||
om = LDAP_SLIST_FIRST( &om_list );
|
||||
LDAP_SLIST_REMOVE_HEAD( &om_list, som_next );
|
||||
|
||||
ldap_charray_free(om->som_names);
|
||||
free(om->som_oid.bv_val);
|
||||
free(om);
|
||||
|
||||
LDAP_SLIST_REMOVE_HEAD( &om_list, som_next );
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
int
|
||||
|
|
|
|||
Loading…
Reference in a new issue