From: Kurt Zeilenga Date: Thu, 6 Apr 2006 21:29:38 +0000 (+0000) Subject: cleanup X-Git-Tag: OPENLDAP_REL_ENG_2_4_0ALPHA~29 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1b9d68d6baba49b435472988aa07009fd330a614;p=openldap cleanup --- diff --git a/servers/slapd/controls.c b/servers/slapd/controls.c index eb624f00ce..26e2461515 100644 --- a/servers/slapd/controls.c +++ b/servers/slapd/controls.c @@ -420,7 +420,7 @@ get_supported_controls(char ***ctrloidsp, } masks = (slap_mask_t *)SLAP_MALLOC( (n + 1) * sizeof(slap_mask_t) ); if ( masks == NULL ) { - ch_free( oids ); + SLAP_FREE( oids ); return LDAP_NO_MEMORY; } diff --git a/servers/slapd/root_dse.c b/servers/slapd/root_dse.c index c3b30ac63b..ac523a65a5 100644 --- a/servers/slapd/root_dse.c +++ b/servers/slapd/root_dse.c @@ -214,7 +214,6 @@ root_dse_info( = slap_schema.si_ad_ref; e = (Entry *) SLAP_CALLOC( 1, sizeof(Entry) ); - if( e == NULL ) { Debug( LDAP_DEBUG_ANY, "root_dse_info: SLAP_CALLOC failed", 0, 0, 0 );