features/changelog: Fix a resource leak

Fixes CID 1382359

Change-Id: Iaafbdb9a45496091327e3dc9092e09148fa9a5c5
updates: bz#789278
Signed-off-by: Vijay Bellur <vbellur@redhat.com>
This commit is contained in:
Vijay Bellur 2018-08-12 18:40:25 -07:00 committed by Amar Tumballi
parent 89545e745e
commit 767109f5cf

View File

@ -662,6 +662,7 @@ htime_open (xlator_t *this,
CHANGELOG_MSG_HTIME_INFO,
"HTIME_CURRENT not found. Changelog enabled"
" before init");
sys_close (ht_dir_fd);
return htime_create (this, priv, ts);
}