From: Howard Chu Date: Sun, 13 Apr 2003 16:15:52 +0000 (+0000) Subject: Memory context fixes X-Git-Tag: OPENLDAP_REL_ENG_2_2_0ALPHA~368 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=755f785432ccaa8424a8f8ef9b0c3feeb141b64e;p=openldap Memory context fixes --- diff --git a/servers/slapd/back-bdb/index.c b/servers/slapd/back-bdb/index.c index faac62dfdb..950b52c276 100644 --- a/servers/slapd/back-bdb/index.c +++ b/servers/slapd/back-bdb/index.c @@ -195,7 +195,7 @@ static int indexer( for( i=0; keys[i].bv_val != NULL; i++ ) { rc = bdb_key_change( op->o_bd, db, txn, &keys[i], id, opid ); if( rc ) { - ber_bvarray_free( keys ); + ber_bvarray_free_x( keys, op->o_tmpmemctx ); goto done; } } @@ -216,7 +216,7 @@ static int indexer( for( i=0; keys[i].bv_val != NULL; i++ ) { rc = bdb_key_change( op->o_bd, db, txn, &keys[i], id, opid ); if( rc ) { - ber_bvarray_free( keys ); + ber_bvarray_free_x( keys, op->o_tmpmemctx ); goto done; } } @@ -238,7 +238,7 @@ static int indexer( for( i=0; keys[i].bv_val != NULL; i++ ) { bdb_key_change( op->o_bd, db, txn, &keys[i], id, opid ); if( rc ) { - ber_bvarray_free( keys ); + ber_bvarray_free_x( keys, op->o_tmpmemctx ); goto done; } }