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 <[email protected]>
Authored: Thu Apr 12 21:43:31 2018 +0000
Committer: Dave George <[email protected]>
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 );
         }
     }
 

Reply via email to