summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--xlators/performance/io-cache/src/io-cache.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/xlators/performance/io-cache/src/io-cache.c b/xlators/performance/io-cache/src/io-cache.c
index 2f26b076b12..e548c965c31 100644
--- a/xlators/performance/io-cache/src/io-cache.c
+++ b/xlators/performance/io-cache/src/io-cache.c
@@ -1568,11 +1568,18 @@ ioc_priv_dump (xlator_t *this)
void
fini (xlator_t *this)
{
- ioc_table_t *table = this->private;
+ ioc_table_t *table = NULL;
+
+ table = this->private;
if (table == NULL)
return;
+ if (table->mem_pool != NULL) {
+ mem_pool_destroy (table->mem_pool);
+ table->mem_pool = NULL;
+ }
+
pthread_mutex_destroy (&table->table_lock);
GF_FREE (table);