trafodion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sure...@apache.org
Subject [31/50] [abbrv] trafodion git commit: Fix socket leak (close socket).
Date Sat, 16 Jun 2018 17:10:01 GMT
Fix socket leak (close socket).


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

Branch: refs/heads/master
Commit: a528474031e76e0ad4b8fc478bb137a879f444ec
Parents: a113135
Author: Dave George <desgyn@gmail.com>
Authored: Thu Apr 12 21:43:31 2018 +0000
Committer: Dave George <desgyn@gmail.com>
Committed: Thu Apr 12 21:43:31 2018 +0000

----------------------------------------------------------------------
 core/sqf/monitor/linux/ptpcommaccept.cxx | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafodion/blob/a5284740/core/sqf/monitor/linux/ptpcommaccept.cxx
----------------------------------------------------------------------
diff --git a/core/sqf/monitor/linux/ptpcommaccept.cxx b/core/sqf/monitor/linux/ptpcommaccept.cxx
index dc48b41..fa21dc0 100644
--- a/core/sqf/monitor/linux/ptpcommaccept.cxx
+++ b/core/sqf/monitor/linux/ptpcommaccept.cxx
@@ -278,6 +278,7 @@ void CPtpCommAccept::commAcceptorSock()
         else
         {
             processNewSock( sockFd );
+            close( sockFd );
         }
     }
 


Mime
View raw message