]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
secret: close fd on error
authorJosh Durgin <josh.durgin@inktank.com>
Mon, 24 Sep 2012 22:20:14 +0000 (15:20 -0700)
committerSamuel Just <sam.just@inktank.com>
Tue, 25 Sep 2012 21:09:28 +0000 (14:09 -0700)
commitdd10b1e8348ffa1d87eaf7c0001cde7baac1b07b
tree6158676d65b307277b084d05af492d8d991115ab
parent237135275d86ac36cc8471329ab7ce7e87a1744f
secret: close fd on error

CID 717079: Resource leak (RESOURCE_LEAK)
At (6): Handle variable "fd" going out of scope leaks the handle.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
src/common/secret.c