X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=servers%2Fslapd%2Fschemaparse.c;h=6b22bf38eba7a250737bcfe130e7fe3dc71759cc;hb=f3c2c7ba48e67468e4052cea4699ffabad59a741;hp=b43874d0590fd34e8429ad0425800537713523ba;hpb=fa4b1c69d789ea7f64021b4b8d3aa154bc6b1c91;p=openldap diff --git a/servers/slapd/schemaparse.c b/servers/slapd/schemaparse.c index b43874d059..6b22bf38eb 100644 --- a/servers/slapd/schemaparse.c +++ b/servers/slapd/schemaparse.c @@ -2,7 +2,7 @@ /* $OpenLDAP$ */ /* This work is part of OpenLDAP Software . * - * Copyright 1998-2005 The OpenLDAP Foundation. + * Copyright 1998-2006 The OpenLDAP Foundation. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -25,8 +25,6 @@ #include "slap.h" #include "ldap_schema.h" -int global_schemacheck = 1; /* schemacheck ON is default */ - static void oc_usage(void); static void at_usage(void); @@ -37,13 +35,14 @@ static char *const err2text[] = { "user-defined ObjectClass includes operational attributes", "user-defined ObjectClass has inappropriate SUPerior", "Duplicate objectClass", + "Inconsistent duplicate objectClass", "AttributeType not found", "AttributeType inappropriate matching rule", "AttributeType inappropriate USAGE", "AttributeType inappropriate SUPerior", "AttributeType SYNTAX or SUPerior required", "Duplicate attributeType", - "Inconsistent attributeType", + "Inconsistent duplicate attributeType", "MatchingRule not found", "MatchingRule incomplete", "Duplicate matchingRule", @@ -281,6 +280,7 @@ parse_at( code = at_add(at,1,sat,&err); if ( code ) { + ldap_attributetype_free( at ); fprintf( stderr, "%s: line %d: %s: \"%s\"\n", fname, lineno, scherr2str(code), err); return 1;