You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2014/01/31 22:42:33 UTC

git commit: TS-2180 Small memory leak in RecCore.cc, from previous refactoring

Updated Branches:
  refs/heads/master d081cdf34 -> 4c935d48e


TS-2180 Small memory leak in RecCore.cc, from previous refactoring


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/4c935d48
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/4c935d48
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/4c935d48

Branch: refs/heads/master
Commit: 4c935d48e7a1c9d496225e4a1fd6cc2f5b2610e7
Parents: d081cdf
Author: Leif Hedstrom <zw...@apache.org>
Authored: Fri Jan 31 14:41:52 2014 -0700
Committer: Leif Hedstrom <zw...@apache.org>
Committed: Fri Jan 31 14:42:19 2014 -0700

----------------------------------------------------------------------
 CHANGES                | 2 ++
 lib/records/RecCore.cc | 2 --
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/4c935d48/CHANGES
----------------------------------------------------------------------
diff --git a/CHANGES b/CHANGES
index 9593111..97866db 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,8 @@
                                                          -*- coding: utf-8 -*-
 Changes with Apache Traffic Server 4.2.0
 
+  *) [TS-2180] Small memory leak in RecCore.cc, from previous refactoring.
+
   *) [TS-2534] Make sure RecRecord structs are always properly initialized.
 
   *) [TS-2483] Add a new metric, proxy.node.restarts.proxy.cache_ready_time,

http://git-wip-us.apache.org/repos/asf/trafficserver/blob/4c935d48/lib/records/RecCore.cc
----------------------------------------------------------------------
diff --git a/lib/records/RecCore.cc b/lib/records/RecCore.cc
index bcfe6c6..dded7cb 100644
--- a/lib/records/RecCore.cc
+++ b/lib/records/RecCore.cc
@@ -184,8 +184,6 @@ RecCoreInit(RecModeT mode_type, Diags *_diags)
   // read configs
   if ((mode_type == RECM_SERVER) || (mode_type == RECM_STAND_ALONE)) {
     ink_mutex_init(&g_rec_config_lock, NULL);
-    g_rec_config_contents_llq = create_queue();
-    g_rec_config_contents_ht = ink_hash_table_create(InkHashTableKeyType_String);
     // Import the file into memory; try the following in this order:
     // ./etc/trafficserver/records.config.shadow
     // ./records.config.shadow