This is an automated email from the ASF dual-hosted git repository.

zwoop pushed a commit to branch 7.1.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/7.1.x by this push:
     new 9ef38ce  Coverity: CID 1380042:Resource leaks  (RESOURCE_LEAK)
9ef38ce is described below

commit 9ef38ce94d7945f7b54915898e5e13c192088829
Author: Vijay Mamidi <vijayabhaskar_mam...@yahoo.com>
AuthorDate: Wed Aug 30 14:11:14 2017 -0700

    Coverity: CID 1380042:Resource leaks  (RESOURCE_LEAK)
    
    (cherry picked from commit 7d893d577154ffd49e07009c2d8aa3c81ef84f60)
---
 iocore/net/SSLConfig.cc | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/iocore/net/SSLConfig.cc b/iocore/net/SSLConfig.cc
index 1ffc54d..e5d6b12 100644
--- a/iocore/net/SSLConfig.cc
+++ b/iocore/net/SSLConfig.cc
@@ -562,8 +562,10 @@ SSLTicketKeyConfig::reconfigure()
   SSLTicketParams *ticketKey = new SSLTicketParams();
 
   if (ticketKey) {
-    if (!ticketKey->LoadTicket())
+    if (!ticketKey->LoadTicket()) {
+      delete ticketKey;
       return false;
+    }
   }
 
   configid = configProcessor.set(configid, ticketKey);

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

Reply via email to