*/
LDAP_SLAPD_F (void) oc_destroy LDAP_P(( void ));
+LDAP_SLAPD_F (void) oidm_destroy LDAP_P(( void ));
LDAP_SLAPD_F (void) at_destroy LDAP_P(( void ));
LDAP_SLAPD_F (void) ad_destroy LDAP_P(( void * ));
LDAP_SLAPD_F (void) mr_destroy LDAP_P(( void ));
if( pos ) {
int suflen = strlen(oid + pos);
- char *new = ch_calloc(1,
- om->som_oid.bv_len + suflen + 1);
+ char *new = ch_malloc( om->som_oid.bv_len
+ + suflen + 1);
strcpy(new, om->som_oid.bv_val);
if( suflen ) {
return NULL;
}
+void
+oidm_destroy()
+{
+ OidMacro *om, *n;
+
+ for (om = om_list; om; om = n) {
+ n = om->som_next;
+ charray_free(om->som_names);
+ free(om->som_oid.bv_val);
+ free(om);
+ }
+}
+
int
parse_oidm(
const char *fname,