]> git.sur5r.net Git - openldap/commitdiff
minor schema parsing cleanup
authorPierangelo Masarati <ando@openldap.org>
Sat, 19 Nov 2005 14:57:25 +0000 (14:57 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sat, 19 Nov 2005 14:57:25 +0000 (14:57 +0000)
servers/slapd/config.c
servers/slapd/schema_prep.c
servers/slapd/schemaparse.c

index cbc9f21ec6ea39b916b3cf453864f6e239a63903..7738724f32fcf74a2a3ef6f0ecc0d6459d23a3c6 100644 (file)
@@ -448,6 +448,7 @@ init_config_attrs(ConfigTable *ct) {
                                freeit = 1;
 
                        } else {
+                               ldap_attributetype_free( at );
                                fprintf( stderr, "init_config_attrs: AttributeType \"%s\": %s, %s\n",
                                        ct[i].attribute, scherr2str(code), err );
                                return code;
index 7349628240966aa320d006b4b1e63dae89822060..ca06f111002f23ec8b61bda7fb99276cd8d75dfa 100644 (file)
@@ -1207,6 +1207,7 @@ slap_schema_load( void )
 
                        code = at_add( at, 0, NULL, &err );
                        if ( code ) {
+                               ldap_attributetype_free( at );
                                fprintf( stderr, "slap_schema_load: AttributeType "
                                        "\"%s\": %s: \"%s\"\n",
                                         ad_map[i].ssam_name, scherr2str(code), err );
index 0834dc0ae8c08a6795bce87c7e65c7fec5f71910..7aa7d61ba36513b2446a0de2ca9a1a6d1ff30ec8 100644 (file)
@@ -280,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;