Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix memory leak in post action #339

Merged
merged 1 commit into from
Mar 28, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
### Fixed

- Do not return stale service configuration when new one is available [PR #333](https://github.com/3scale/apicast/pull/333)
- Memory leak in every request [PR #339](https://github.com/3scale/apicast/pull/339)

## [3.0.0-beta3] - 2017-03-20

Expand Down
2 changes: 2 additions & 0 deletions apicast/src/apicast.lua
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ function _M.post_action()
local request_id = ngx.var.original_request_id
local p = ngx.ctx.proxy or post_action_proxy[request_id]

post_action_proxy[request_id] = nil

if p then
p:post_action()
else
Expand Down