From 1ce41b7f041ffd2990a211cbb9037389c6eaeb2a Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 25 Jan 2007 14:06:48 +0000 Subject: [PATCH] ITS#4805 free thread keys in reverse order --- libraries/libldap_r/tpool.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/libraries/libldap_r/tpool.c b/libraries/libldap_r/tpool.c index 3c70217f99..e32969f6fa 100644 --- a/libraries/libldap_r/tpool.c +++ b/libraries/libldap_r/tpool.c @@ -491,12 +491,7 @@ ldap_int_thread_pool_wrapper ( } } - for ( i=0; i=0; i--) { + if ( ctx[i].ltk_key ) + continue; if ( ctx[i].ltk_free ) ctx[i].ltk_free( ctx[i].ltk_key, ctx[i].ltk_data ); ctx[i].ltk_key = NULL; -- 2.47.2