You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by so...@apache.org on 2016/10/26 23:09:23 UTC

[trafficserver] branch master updated: TS-5006: Fix CID 1306780

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

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

The following commit(s) were added to refs/heads/master by this push:
       new  239c310   TS-5006: Fix CID 1306780
239c310 is described below

commit 239c3104e2ef680bcfa35d997645bdf1485e161a
Author: Phil Sorber <so...@apache.org>
AuthorDate: Wed Oct 26 12:09:25 2016 -0600

    TS-5006: Fix CID 1306780
    
    Only release if not NULL.
---
 proxy/InkAPI.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/proxy/InkAPI.cc b/proxy/InkAPI.cc
index 8a8559d..9d4bc56 100644
--- a/proxy/InkAPI.cc
+++ b/proxy/InkAPI.cc
@@ -6734,8 +6734,8 @@ TSNetConnect(TSCont contp, sockaddr const *addr)
     opt.set_sock_param(http_config_param->oride.sock_recv_buffer_size_out, http_config_param->oride.sock_send_buffer_size_out,
                        http_config_param->oride.sock_option_flag_out, http_config_param->oride.sock_packet_mark_out,
                        http_config_param->oride.sock_packet_tos_out);
+    HttpConfig::release(http_config_param);
   }
-  HttpConfig::release(http_config_param);
 
   FORCE_PLUGIN_SCOPED_MUTEX(contp);
 

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