Updated Branches:
  refs/heads/4.0.x 70d425aeb -> f8d12ced9

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/f8d12ced
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/f8d12ced
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/f8d12ced

Branch: refs/heads/4.0.x
Commit: f8d12ced9d92faa5e2e18b9f5331e89f140fde4b
Parents: 70d425a
Author: bettydramit <[email protected]>
Authored: Tue Aug 27 15:09:05 2013 -0700
Committer: Leif Hedstrom <[email protected]>
Committed: Tue Aug 27 16:19:02 2013 -0600

----------------------------------------------------------------------
 CHANGES                | 3 +++
 proxy/InkAPIInternal.h | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/f8d12ced/CHANGES
----------------------------------------------------------------------
diff --git a/CHANGES b/CHANGES
index 98ba1a7..bc3c184 100644
--- a/CHANGES
+++ b/CHANGES
@@ -3,6 +3,9 @@ Changes with Apache Traffic Server 4.0.1
 
   *) [TS-2154] Lua plugin asserts traffic_server on startup.
 
+  *) [TS-2161] TSHttpTxnHookAdd memory Leak.
+    Author: bettydramit <[email protected]>
+
   *) [TS-2127] Move hostdb.config to var/trafficserver, together with with the
    host.db itself.
 

http://git-wip-us.apache.org/repos/asf/trafficserver/blob/f8d12ced/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;
 }

Reply via email to