Resolves: bug 474945
Bug Description: An assertion is triggered when adding a duplicate attribute
to the schema over LDAP in a debug build.
Reviewed by: ???
Files: see diff
Fix Description: We were calling attr_syntax_delete() on a syntax that we
fetched using attr_syntax_get_by_name_locking_optional().
You are supposed to use attr_syntax_return() when you are finished with a
syntax that you fetch in this way, which will take care of freeing it
if it is
required. There was already code that was doing the proper thing, so
to attr_syntax_delete() can simply be removed.
Platforms tested: RHEL5
Flag Day: no
Doc impact: no