From 17b810cf66876b495a6457f77c82d682f04551e7 Mon Sep 17 00:00:00 2001 From: Raghavendra G Date: Wed, 16 Jun 2010 21:37:18 +0000 Subject: performance/io-cache: free table->mem_pool in fini. Signed-off-by: Raghavendra G Signed-off-by: Anand V. Avati BUG: 995 (memory leak in io-cache) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=995 --- xlators/performance/io-cache/src/io-cache.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xlators/performance/io-cache/src/io-cache.c b/xlators/performance/io-cache/src/io-cache.c index 9466d299387..96aa8fdef7b 100644 --- a/xlators/performance/io-cache/src/io-cache.c +++ b/xlators/performance/io-cache/src/io-cache.c @@ -1469,6 +1469,11 @@ fini (xlator_t *this) 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); FREE (table); -- cgit