]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
net_handler.cc: close another socket leak
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 12 Nov 2014 10:51:29 +0000 (11:51 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Thu, 13 Nov 2014 22:39:09 +0000 (23:39 +0100)
commit4814cf7b627f7729f46e75b5f5f140b667d1f0d6
tree1c9fb8c43782b06508cc01e3f703daea59b41ccc
parent72c0156e09d48bc760b3c731f0912ee1b45cfb86
net_handler.cc: close another socket leak

Close socket if ::setsockopt() fails before return.

Fix for:

CID 1249632 (#1 of 1): Resource leak (RESOURCE_LEAK)
9. leaked_handle: Handle variable s going out of scope leaks the handle.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/msg/async/net_handler.cc