From: Pierangelo Masarati Date: Sat, 19 Nov 2005 14:57:25 +0000 (+0000) Subject: minor schema parsing cleanup X-Git-Tag: OPENLDAP_REL_ENG_2_4_BP~782 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f4781b1527b4cfcfece89374c342dbf2c335da31;p=openldap minor schema parsing cleanup --- diff --git a/servers/slapd/config.c b/servers/slapd/config.c index cbc9f21ec6..7738724f32 100644 --- a/servers/slapd/config.c +++ b/servers/slapd/config.c @@ -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; diff --git a/servers/slapd/schema_prep.c b/servers/slapd/schema_prep.c index 7349628240..ca06f11100 100644 --- a/servers/slapd/schema_prep.c +++ b/servers/slapd/schema_prep.c @@ -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 ); diff --git a/servers/slapd/schemaparse.c b/servers/slapd/schemaparse.c index 0834dc0ae8..7aa7d61ba3 100644 --- a/servers/slapd/schemaparse.c +++ b/servers/slapd/schemaparse.c @@ -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;