From 1b9d68d6baba49b435472988aa07009fd330a614 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Thu, 6 Apr 2006 21:29:38 +0000 Subject: [PATCH] cleanup --- servers/slapd/controls.c | 2 +- servers/slapd/root_dse.c | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) 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 ); -- 2.39.5