From: Ondrej Kuznik Date: Thu, 16 Jun 2011 09:12:27 +0000 (+0200) Subject: ITS#6974 (Re)moving stray cleanup code. X-Git-Tag: OPENLDAP_REL_ENG_2_5_0ALPHA~1326 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f436007313f6615ff3ece724f5fc2446c41c175;p=thirdparty%2Fopenldap.git ITS#6974 (Re)moving stray cleanup code. --- diff --git a/servers/slapd/back-monitor/init.c b/servers/slapd/back-monitor/init.c index bdfffcd644..c2b0b7ef23 100644 --- a/servers/slapd/back-monitor/init.c +++ b/servers/slapd/back-monitor/init.c @@ -1108,16 +1108,6 @@ done:; *elpp = (entry_limbo_t *)ch_malloc( sizeof( entry_limbo_t ) ); if ( *elpp == NULL ) { - el.el_e->e_private = NULL; - entry_free( el.el_e ); - return -1; - } - - if ( *elpp != NULL ) { - el.el_next = NULL; - **elpp = el; - - } else { if ( !BER_BVISNULL( &el.el_filter ) ) { ch_free( el.el_filter.bv_val ); } @@ -1129,6 +1119,9 @@ done:; } return -1; } + + el.el_next = NULL; + **elpp = el; } return 0;