summaryrefslogtreecommitdiffstats
path: root/xlators/features
diff options
context:
space:
mode:
authorVijay Bellur <vbellur@redhat.com>2018-08-13 00:15:59 -0700
committerAmar Tumballi <amarts@redhat.com>2018-08-17 16:43:30 +0000
commitdc25d2c1eeace91669052e3cecc083896e7329b2 (patch)
treed5748428e31902482e4a9dec79f1a3cc385f5175 /xlators/features
parent522352d4b123d66f7d0b57c287ed7367deba0f31 (diff)
features/changelog: close htime_fd in fini()
Addresses CID: 1325549 Change-Id: Ib041c7c288db6810b2e13a05a19ee894a47c9b05 updates: bz#789278 Signed-off-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'xlators/features')
-rw-r--r--xlators/features/changelog/src/changelog.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/xlators/features/changelog/src/changelog.c b/xlators/features/changelog/src/changelog.c
index 6d32de63db5..ab42ad869c0 100644
--- a/xlators/features/changelog/src/changelog.c
+++ b/xlators/features/changelog/src/changelog.c
@@ -2917,6 +2917,11 @@ fini (xlator_t *this)
/* deallocate mempool */
mem_pool_destroy (this->local_pool);
+
+ if (priv->htime_fd != -1) {
+ sys_close (priv->htime_fd);
+ }
+
/* finally, dealloac private variable */
GF_FREE (priv);
}