From: Christophe Jaillet Date: Sun, 25 Dec 2016 11:11:30 +0000 (+0000) Subject: Unlock mutex in error path. X-Git-Tag: 2.5.0-alpha~869 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4b509440bc2a66ced0213e9d7efe8f6f938bc857;p=thirdparty%2Fapache%2Fhttpd.git Unlock mutex in error path. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1776006 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/lua/lua_vmprep.c b/modules/lua/lua_vmprep.c index 925f2b344a2..e6d68cf000a 100644 --- a/modules/lua/lua_vmprep.c +++ b/modules/lua/lua_vmprep.c @@ -471,6 +471,9 @@ lua_State *ap_lua_get_lua_state(apr_pool_t *lifecycle_pool, cache_info = sspec->finfo; } else { +#if APR_HAS_THREADS + apr_thread_mutex_unlock(ap_lua_mutex); +#endif return NULL; } }