TS-2161: TSHttpTxnHookAdd memory Leak Make sure that the FeatureAPIHooks destructor correctly frees the APIHook list.
Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/d4930aba Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/d4930aba Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/d4930aba Branch: refs/heads/5.0.x Commit: d4930aba461ff8c1abb263f11838b0f8d45f82c8 Parents: fb20be5 Author: bettydramit <b13621367...@gmail.com> Authored: Tue Aug 27 15:09:05 2013 -0700 Committer: James Peach <jpe...@apache.org> Committed: Tue Aug 27 15:09:05 2013 -0700 ---------------------------------------------------------------------- CHANGES | 3 +++ proxy/InkAPIInternal.h | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/trafficserver/blob/d4930aba/CHANGES ---------------------------------------------------------------------- diff --git a/CHANGES b/CHANGES index c71119d..3fb0375 100644 --- a/CHANGES +++ b/CHANGES @@ -2,6 +2,9 @@ Changes with Apache Traffic Server 4.1.0 + *) [TS-2161] TSHttpTxnHookAdd memory Leak + Author: bettydramit <b13621367...@gmail.com> + *) [TS-2156] Fix stats trap in different type of threads *) [TS-2160] Remove ats_is_ip_nonroutable and replace it with the less confusing http://git-wip-us.apache.org/repos/asf/trafficserver/blob/d4930aba/proxy/InkAPIInternal.h ---------------------------------------------------------------------- diff --git a/proxy/InkAPIInternal.h b/proxy/InkAPIInternal.h index f40af8e..fe10601 100644 --- a/proxy/InkAPIInternal.h +++ b/proxy/InkAPIInternal.h @@ -186,7 +186,7 @@ void FeatureAPIHooks<ID,MAX_ID>::clear() { for (int i = 0; i < MAX_ID; ++i) { - m_hooks->clear(); + m_hooks[i].clear(); } hooks_p = false; }