From: Brian McCallister Date: Fri, 11 Nov 2011 00:49:05 +0000 (+0000) Subject: use a sub-pool for scope_once X-Git-Tag: 2.5.0-alpha~7938 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bed1f11a3255495be6ea18b6f219a550951d036d;p=apache use a sub-pool for scope_once git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1200667 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/lua/mod_lua.c b/modules/lua/mod_lua.c index 06479684bf..3450d27205 100644 --- a/modules/lua/mod_lua.c +++ b/modules/lua/mod_lua.c @@ -120,7 +120,7 @@ static int lua_handler(request_rec *r) apr_pool_t *pool; switch (dcfg->vm_scope) { case AP_LUA_SCOPE_ONCE: - pool = r->pool; + apr_pool_create(&pool, r->pool); break; case AP_LUA_SCOPE_REQUEST: pool = r->pool;