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

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


The following commit(s) were added to refs/heads/master by this push:
     new 7d893d5  Coverity: CID 1380042:Resource leaks  (RESOURCE_LEAK)
7d893d5 is described below

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

    Coverity: CID 1380042:Resource leaks  (RESOURCE_LEAK)
---
 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 0153ebf..3b15a8a 100644
--- a/iocore/net/SSLConfig.cc
+++ b/iocore/net/SSLConfig.cc
@@ -570,8 +570,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