]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
adminsocket: fix sock-fd leak in failure path
authorSage Weil <sage@inktank.com>
Fri, 28 Sep 2012 13:48:11 +0000 (06:48 -0700)
committerSage Weil <sage@inktank.com>
Fri, 28 Sep 2012 20:18:04 +0000 (13:18 -0700)
commit7490032008dd68c306d46c1c264fe2afd170c47e
tree45b66847ca55fe2ba918fa95061eb1cf5a61180c
parentaf5f143736c083ce8f61b5c038300eb1fbaadcad
adminsocket: fix sock-fd leak in failure path

CID 728088: Resource leak (RESOURCE_LEAK)
At (9): Handle variable "sock_fd" going out of scope leaks the handle.

Signed-off-by: Sage Weil <sage@inktank.com>
src/common/admin_socket.cc