summaryrefslogtreecommitdiffstats
path: root/ldap/servers/slapd/schema.c
diff options
context:
space:
mode:
authorNathan Kinder <nkinder@redhat.com>2009-01-21 00:00:32 +0000
committerNathan Kinder <nkinder@redhat.com>2009-01-21 00:00:32 +0000
commita23e607e3368f009e26f0e65e5ad8f34665da4f1 (patch)
tree6e9b5231b2e90b9a887fe32bd84bfbb7bb591e5d /ldap/servers/slapd/schema.c
parentb9a1fee404f818bbf1ce20452e199caf64e24855 (diff)
downloadds-a23e607e3368f009e26f0e65e5ad8f34665da4f1.tar.gz
ds-a23e607e3368f009e26f0e65e5ad8f34665da4f1.tar.xz
ds-a23e607e3368f009e26f0e65e5ad8f34665da4f1.zip
Resolves: 474945
Summary: Consistently deal with attr syntax info struct ref count when fetcvhing and returning them to the global hashtables.
Diffstat (limited to 'ldap/servers/slapd/schema.c')
-rw-r--r--ldap/servers/slapd/schema.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ldap/servers/slapd/schema.c b/ldap/servers/slapd/schema.c
index 5383006d..04b13d09 100644
--- a/ldap/servers/slapd/schema.c
+++ b/ldap/servers/slapd/schema.c
@@ -2443,6 +2443,7 @@ schema_replace_attributes ( Slapi_PBlock *pb, LDAPMod *mod, char *errorbuf,
LDAPDebug( LDAP_DEBUG_TRACE, "schema_replace_attributes:"
" replacing type %s (OID %s)\n",
newasip->asi_name, newasip->asi_oid, 0 );
+ /* flag for deletion */
attr_syntax_delete( oldasip );
}
@@ -3149,7 +3150,8 @@ slapi_check_at_sup_dependency(char *sup, char *oid)
/*
* if asipp is NULL, the attribute type is added to the global set of schema.
- * if asipp is not NULL, the AT is not added but *asipp is set.
+ * if asipp is not NULL, the AT is not added but *asipp is set. When you are
+ * finished with *asipp, use attr_syntax_free() to dispose of it.
*
* schema_flags: Any or none of the following bits could be set
* DSE_SCHEMA_NO_CHECK -- schema won't be checked