]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#6974 (Re)moving stray cleanup code.
authorOndrej Kuznik <ondrej.kuznik@acision.com>
Thu, 16 Jun 2011 09:12:27 +0000 (11:12 +0200)
committerHoward Chu <hyc@openldap.org>
Tue, 21 Jun 2011 01:13:36 +0000 (18:13 -0700)
servers/slapd/back-monitor/init.c

index bdfffcd64433da0f0d34c09958ab3a8e256fcd39..c2b0b7ef23626d1479c011362d8a31c2b5ac0451 100644 (file)
@@ -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;