leo@yuriev.ru wrote:
@@ -1265,8 +1264,10 @@ static void *search_stack( Operation *op ) }
if ( !ret ) {
ret = ch_malloc( mdb->mi_search_stack_depth * MDB_IDL_UM_SIZE
* sizeof( ID ) );
size_t case_stack = mdb->mi_search_stack_depth * MDB_IDL_UM_SIZE * sizeof( ID );
size_t case_sctmp = MDB_IDL_UM_SIZE * sizeof( ID2 );
size_t size = (case_stack > case_sctmp) ? case_stack : case_sctmp;
if ( op->o_threadctx ) { ldap_pvt_thread_pool_setkey( op->o_threadctx, (void *)search_stack, ret, search_stack_free, NULL, NULL );ret = ch_malloc( size );
Unnecessary.