You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafodion.apache.org by su...@apache.org on 2018/06/16 17:10:01 UTC
[31/50] [abbrv] trafodion git commit: Fix socket leak (close socket).
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 <de...@gmail.com>
Authored: Thu Apr 12 21:43:31 2018 +0000
Committer: Dave George <de...@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 );
}
}