This is an automated email from the ASF dual-hosted git repository. zwoop pushed a commit to branch 7.1.x in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/7.1.x by this push: new 7b278f3 Fix mem leak related to do_os_response() function 7b278f3 is described below commit 7b278f36bf15e84a23ab2cddc1eb672dadd34b9c Author: Kit Chan <kic...@apache.org> AuthorDate: Thu Oct 5 00:20:16 2017 -0700 Fix mem leak related to do_os_response() function (cherry picked from commit 66d5caf6a8569f536bc798105a63fe0a7b67a6ee) --- plugins/experimental/ts_lua/ts_lua.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/experimental/ts_lua/ts_lua.c b/plugins/experimental/ts_lua/ts_lua.c index 25c9710..120bd91 100644 --- a/plugins/experimental/ts_lua/ts_lua.c +++ b/plugins/experimental/ts_lua/ts_lua.c @@ -193,6 +193,8 @@ ts_lua_remap_plugin_init(void *ih, TSHttpTxn rh, TSRemapRequestInfo *rri) lua_getglobal(L, (remap ? TS_LUA_FUNCTION_REMAP : TS_LUA_FUNCTION_OS_RESPONSE)); if (lua_type(L, -1) != LUA_TFUNCTION) { + lua_pop(L, 1); + ts_lua_destroy_http_ctx(http_ctx); TSMutexUnlock(main_ctx->mutexp); return TSREMAP_NO_REMAP; } -- To stop receiving notification emails like this one, please contact ['"commits@trafficserver.apache.org" <commits@trafficserver.apache.org>'].