]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/schemaparse.c
use slab memory for proxyauthz
[openldap] / servers / slapd / schemaparse.c
index d0b0d5b77a26c2721048efe64ddafe25bf20ae79..6b22bf38eba7a250737bcfe130e7fe3dc71759cc 100644 (file)
@@ -2,7 +2,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * 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);
 
@@ -282,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;