trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sor...@apache.org
Subject [trafficserver] 03/05: TS-4479: Clang-analyzer failure, Potential memory leak
Date Thu, 09 Feb 2017 17:42:44 GMT
This is an automated email from the ASF dual-hosted git repository.

sorber pushed a commit to branch 6.2.x
in repository https://git-dual.apache.org/repos/asf/trafficserver.git

commit c858c3a764ae065866382e0da148b51fa2c09f3c
Author: Bryan Call <bcall@apache.org>
AuthorDate: Thu May 26 10:15:51 2016 -0700

    TS-4479: Clang-analyzer failure, Potential memory leak
    
    (cherry picked from commit 87d1fc5d17d82ebb8f06f4138ca82b6e3b57179c)
---
 proxy/logging/LogCollationAccept.cc | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/proxy/logging/LogCollationAccept.cc b/proxy/logging/LogCollationAccept.cc
index 6f66d3a..92b9924 100644
--- a/proxy/logging/LogCollationAccept.cc
+++ b/proxy/logging/LogCollationAccept.cc
@@ -91,12 +91,9 @@ LogCollationAccept::~LogCollationAccept()
 int
 LogCollationAccept::accept_event(int event, NetVConnection *net_vc)
 {
-  LogCollationHostSM *sm;
-
   switch (event) {
   case NET_EVENT_ACCEPT:
-    sm = new LogCollationHostSM(net_vc);
-    ink_assert(NULL != sm);
+    new LogCollationHostSM(net_vc);
     break;
 
   default:

-- 
To stop receiving notification emails like this one, please contact
"commits@trafficserver.apache.org" <commits@trafficserver.apache.org>.

Mime
View raw message