[ https://issues.apache.org/jira/browse/TS-5041?focusedWorklogId=31985&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-31985 ]
ASF GitHub Bot logged work on TS-5041: -------------------------------------- Author: ASF GitHub Bot Created on: 11/Nov/16 14:53 Start Date: 11/Nov/16 14:53 Worklog Time Spent: 10m Work Description: GitHub user shukitchan opened a pull request: https://github.com/apache/trafficserver/pull/1217 TS-5041: fix resource leak in ts_lua @zwoop please take a look. Thanks. You can merge this pull request into a Git repository by running: $ git pull https://github.com/shukitchan/trafficserver ts5041 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/trafficserver/pull/1217.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #1217 ---- commit b70cc48e8286ee21e67f586082c3821a5daa3f55 Author: Kit Chan <kic...@apache.org> Date: 2016-11-11T14:51:52Z TS-5041: fix resource leak in ts_lua ---- Issue Time Tracking ------------------- Worklog Id: (was: 31985) Time Spent: 10m Remaining Estimate: 0h > CID 1365416: Leak in ts_lua plugin > ---------------------------------- > > Key: TS-5041 > URL: https://issues.apache.org/jira/browse/TS-5041 > Project: Traffic Server > Issue Type: Bug > Components: Lua, Plugins > Reporter: Kit Chan > Assignee: Kit Chan > Fix For: 7.1.0 > > Time Spent: 10m > Remaining Estimate: 0h > > {code} > *** CID 1365416: Resource leaks (RESOURCE_LEAK) > /plugins/experimental/ts_lua/ts_lua_http.c: 458 in > ts_lua_http_set_parent_proxy() > 452 port = luaL_checkinteger(L, 2); > 453 TSHttpTxnParentProxySet(http_ctx->txnp, target, port); > 454 } else { > 455 return luaL_error(L, "incorrect # of arguments for > set_parent_proxy, receiving %d instead of 2", n); > 456 } > 457 > >>> CID 1365416: Resource leaks (RESOURCE_LEAK) > >>> Variable "target" going out of scope leaks the storage it points to. > 458 return 0; > 459 } > 460 > 461 static int > 462 ts_lua_http_get_parent_selection_url(lua_State *L) > 463 { > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)