trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bc...@apache.org
Subject git commit: TS-2767: ATS Memory Leak related to SPDY
Date Thu, 01 May 2014 19:22:02 GMT
Repository: trafficserver
Updated Branches:
  refs/heads/master 71ffb57f6 -> 966f4a55a


TS-2767: ATS Memory Leak related to SPDY


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

Branch: refs/heads/master
Commit: 966f4a55a343283231dbbf7d8fe2ff75858182e2
Parents: 71ffb57
Author: Sudheer Vinukonda <sudheerv@yahoo-inc.com>
Authored: Thu May 1 12:21:35 2014 -0700
Committer: Bryan Call <bcall@apache.org>
Committed: Thu May 1 12:21:35 2014 -0700

----------------------------------------------------------------------
 proxy/spdy/SpdySM.cc | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/966f4a55/proxy/spdy/SpdySM.cc
----------------------------------------------------------------------
diff --git a/proxy/spdy/SpdySM.cc b/proxy/spdy/SpdySM.cc
index 8372d5b..9ab019d 100644
--- a/proxy/spdy/SpdySM.cc
+++ b/proxy/spdy/SpdySM.cc
@@ -44,7 +44,14 @@ SpdyRequest::clear()
   if (fetch_sm)
     TSFetchDestroy(fetch_sm);
 
-  headers.clear();
+  vector<pair<string, string> >().swap(headers);
+
+  std::string().swap(url);
+  std::string().swap(host);
+  std::string().swap(path);
+  std::string().swap(scheme);
+  std::string().swap(method);
+  std::string().swap(version);
 
   Debug("spdy", "****Delete Request[%" PRIu64 ":%d]", spdy_sm->sm_id, stream_id);
 }


Mime
View raw message