TS-4158: release mlocs correctly in esi pugin. This closes #441
Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/af72c715 Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/af72c715 Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/af72c715 Branch: refs/heads/ts-4160 Commit: af72c715e4bb510bfbe6bfe7749fd887f55e5fe7 Parents: 61a391d Author: Kit Chan <[email protected]> Authored: Sun Jan 31 21:41:00 2016 -0800 Committer: Kit Chan <[email protected]> Committed: Sun Jan 31 21:41:00 2016 -0800 ---------------------------------------------------------------------- plugins/experimental/esi/esi.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/trafficserver/blob/af72c715/plugins/experimental/esi/esi.cc ---------------------------------------------------------------------- diff --git a/plugins/experimental/esi/esi.cc b/plugins/experimental/esi/esi.cc index cd42e62..cdf729e 100644 --- a/plugins/experimental/esi/esi.cc +++ b/plugins/experimental/esi/esi.cc @@ -552,7 +552,7 @@ removeCacheKey(TSHttpTxn txnp) } TSHandleMLocRelease(req_bufp, req_hdr_loc, url_loc); - if (url_loc != NULL) { + if (req_hdr_loc != NULL) { TSHandleMLocRelease(req_bufp, TS_NULL_MLOC, req_hdr_loc); }
