From dc25d2c1eeace91669052e3cecc083896e7329b2 Mon Sep 17 00:00:00 2001 From: Vijay Bellur Date: Mon, 13 Aug 2018 00:15:59 -0700 Subject: features/changelog: close htime_fd in fini() Addresses CID: 1325549 Change-Id: Ib041c7c288db6810b2e13a05a19ee894a47c9b05 updates: bz#789278 Signed-off-by: Vijay Bellur --- xlators/features/changelog/src/changelog.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'xlators/features/changelog/src') 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); } -- cgit