]> git.sur5r.net Git - openldap/commitdiff
Memory context fixes
authorHoward Chu <hyc@openldap.org>
Sun, 13 Apr 2003 16:15:52 +0000 (16:15 +0000)
committerHoward Chu <hyc@openldap.org>
Sun, 13 Apr 2003 16:15:52 +0000 (16:15 +0000)
servers/slapd/back-bdb/index.c

index faac62dfdb1160cce7b8ab315c9371332a6762ed..950b52c27605863e266e7567c7fe201f997ae303 100644 (file)
@@ -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;
                                }
                        }