]> granicus.if.org Git - apache/commitdiff
Unlock mutex in error path.
authorChristophe Jaillet <jailletc36@apache.org>
Sun, 25 Dec 2016 11:11:30 +0000 (11:11 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Sun, 25 Dec 2016 11:11:30 +0000 (11:11 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1776006 13f79535-47bb-0310-9956-ffa450edef68

modules/lua/lua_vmprep.c

index 925f2b344a2e44140a1fd8978cf0d774cee973d6..e6d68cf000a7a9955c2c5ee65e2588dfeb5ec162 100644 (file)
@@ -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;
                 }
             }