From: Howard Chu Date: Fri, 28 Mar 2003 10:24:16 +0000 (+0000) Subject: ITS#2409 - fix oidm_destroy X-Git-Tag: NO_SLAP_OP_BLOCKS~22 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=60ac3f352ea941a656c749406fd1c68179d373e3;p=openldap ITS#2409 - fix oidm_destroy --- diff --git a/servers/slapd/oidm.c b/servers/slapd/oidm.c index ab0b5a4bfc..e553b67227 100644 --- a/servers/slapd/oidm.c +++ b/servers/slapd/oidm.c @@ -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