]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r300664
authortruckman <truckman@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 1 Jun 2016 17:41:00 +0000 (17:41 +0000)
committertruckman <truckman@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 1 Jun 2016 17:41:00 +0000 (17:41 +0000)
commit5f5f86f65c8b0f4e75f4a187d37b2f4b7076176b
treec84d6bef82f79dd15d724a38027231e494c19805
parent67757e6b668e9aa29ddce91482fbec16b25a3dbc
MFC r300664

Fix Coverity CID 978183 Resource leak in rexec().

Close the socket if connect() fails to avoid leaking it.

Reported by: Coverity
CID: 978183

git-svn-id: svn://svn.freebsd.org/base/stable/10@301152 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
lib/libcompat/4.3/rexec.c