]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-bdb/search.c
Change recover logic
[openldap] / servers / slapd / back-bdb / search.c
index 44076d7abeed248791f8c46787c854fbf38065b1..3bea37794c7c29de6cfcd5e97767fc7a143e7632 100644 (file)
@@ -741,11 +741,11 @@ static int search_candidates(
 #endif
 
        /* Allocate IDL stack, plus 1 more for former tmp */
-       stack = malloc( (depth + 1) * BDB_IDL_UM_SIZE * sizeof( ID ) );
+       stack = ch_malloc( (depth + 1) * BDB_IDL_UM_SIZE * sizeof( ID ) );
 
        rc = bdb_filter_candidates( be, &f, ids, stack, stack+BDB_IDL_UM_SIZE );
 
-       free( stack );
+       ch_free( stack );
 
        if( rc ) {
 #ifdef NEW_LOGGING