From: Zeev Suraski Date: Sun, 20 Mar 2005 09:03:07 +0000 (+0000) Subject: Fix the lock (the other patch would probably also work, but it's more error X-Git-Tag: php-5.0.4RC2~26 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fe15677f4e2469cca6937da8037df65a76df364d;p=php Fix the lock (the other patch would probably also work, but it's more error prone and it's better to be on the safe side) --- diff --git a/TSRM/TSRM.c b/TSRM/TSRM.c index 2fbf796ef6..e9ae95d8ef 100644 --- a/TSRM/TSRM.c +++ b/TSRM/TSRM.c @@ -296,11 +296,11 @@ static void allocate_new_resource(tsrm_tls_entry **thread_resources_ptr, THREAD_ } } - tsrm_mutex_unlock(tsmm_mutex); - if (tsrm_new_thread_end_handler) { tsrm_new_thread_end_handler(thread_id, &((*thread_resources_ptr)->storage)); } + + tsrm_mutex_unlock(tsmm_mutex); }