diff options
author | Christopher R. Hertel <crh@redhat.com> | 2014-01-31 12:13:30 -0600 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2014-02-07 18:56:54 -0800 |
commit | 13b68bc693e92378f78f452763a6097bf1755072 (patch) | |
tree | b1fafa7ed731ae3d299077274607567b32730707 /error-codes.json | |
parent | 38e23d727a8fb5a4d688d9f8dc9178e6718215f5 (diff) |
features/index: Close directories left open on error.
Two directory streams are opened, but not always closed if the function
exits with an error. This patch aims to ensure that the directories are
closed in call cases.
Some return values may be explicitly discarded. This is done to avoid
having a successful call to closedir() overwrite the value of ret.
Also, the errno value is preserved in case a calling function needs to
check errno.
BUG: 789278
CID: 1124710
CID: 1124711
Change-Id: I6bf3b5c9c6a1ec9a99cc9178243ea98572c2bac2
Signed-off-by: Christopher R. Hertel <crh@redhat.com>
Reviewed-on: http://review.gluster.org/6883
Reviewed-by: Shyamsundar Ranganathan <srangana@redhat.com>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'error-codes.json')
0 files changed, 0 insertions, 0 deletions