diff options
| author | Raghavendra G <raghavendra@gluster.com> | 2010-06-16 21:37:18 +0000 | 
|---|---|---|
| committer | Anand V. Avati <avati@dev.gluster.com> | 2010-06-22 23:16:23 -0700 | 
| commit | 17b810cf66876b495a6457f77c82d682f04551e7 (patch) | |
| tree | 8cb8391fb96c95e3a5d6381b64561d26359c40fc | |
| parent | 7d8c65c74e4a38f78801ae77a90cdb9a60c370c4 (diff) | |
performance/io-cache: free table->mem_pool in fini.
Signed-off-by: Raghavendra G <raghavendra@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 995 (memory leak in io-cache)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=995
| -rw-r--r-- | xlators/performance/io-cache/src/io-cache.c | 5 | 
1 files changed, 5 insertions, 0 deletions
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);  | 
