Diff for /servers/slapd/oidm.c between versions 1.7 and 1.8

version 1.7, 2003/03/01 02:37:16 version 1.8, 2003/03/28 09:24:16
Line 1 Line 1
 /* schemaparse.c - routines to parse config file objectclass definitions */  /* schemaparse.c - routines to parse config file objectclass definitions */
 /* $OpenLDAP: pkg/ldap/servers/slapd/oidm.c,v 1.6 2003/02/26 06:39:30 kurt Exp $ */  /* $OpenLDAP: pkg/ldap/servers/slapd/oidm.c,v 1.7 2003/03/01 02:37:16 kurt Exp $ */
 /*  /*
  * Copyright 1998-2003 The OpenLDAP Foundation, All Rights Reserved.   * Copyright 1998-2003 The OpenLDAP Foundation, All Rights Reserved.
  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file   * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
Line 72  oidm_find(char *oid) Line 72  oidm_find(char *oid)
 void  void
 oidm_destroy()  oidm_destroy()
 {  {
   
 #ifdef SLAP_NVALUES  
         /* FIXME: this causes a malloc debug error */  
 #else  
         OidMacro *om;          OidMacro *om;
         while( !LDAP_SLIST_EMPTY( &om_list )) {          while( !LDAP_SLIST_EMPTY( &om_list )) {
                 om = LDAP_SLIST_FIRST( &om_list );                  om = LDAP_SLIST_FIRST( &om_list );
                   LDAP_SLIST_REMOVE_HEAD( &om_list, som_next );
   
                 ldap_charray_free(om->som_names);                  ldap_charray_free(om->som_names);
                 free(om->som_oid.bv_val);                  free(om->som_oid.bv_val);
                 free(om);                  free(om);
                                   
                 LDAP_SLIST_REMOVE_HEAD( &om_list, som_next );  
         }          }
 #endif  
 }  }
   
 int  int

Removed from v.1.7  
changed lines
  Added in v.1.8


______________
© Copyright 1998-2020, OpenLDAP Foundation, info@OpenLDAP.org