]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Add a missing release of a Lua state (when server scope is used) when a hook returns...
authorDaniel Gruno <humbedooh@apache.org>
Fri, 17 Aug 2012 14:45:33 +0000 (14:45 +0000)
committerDaniel Gruno <humbedooh@apache.org>
Fri, 17 Aug 2012 14:45:33 +0000 (14:45 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1374295 13f79535-47bb-0310-9956-ffa450edef68

modules/lua/mod_lua.c

index 4aa2aa87bfb6a59e049528ff22d8a23181c1716d..ed1ca2384fedfebfc958ed4db0091f285164dfb7 100644 (file)
@@ -366,6 +366,7 @@ static int lua_request_rec_hook_harness(request_rec *r, const char *name, int ap
                 ap_lua_release_state(L, spec, r);
                 return rc;
             }
+            ap_lua_release_state(L, spec, r);
         }
     }
     return DECLINED;