diff options
author | Raghavendra G <raghavendra@gluster.com> | 2009-10-28 16:15:37 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2009-10-28 23:00:35 -0700 |
commit | 07e8d8a37713d39f63713d8c05dd99a0610a3c35 (patch) | |
tree | 68df95b5f6a8f1b5c50dc694cfa218b268e561e5 /xlators/performance/io-cache/src/ioc-inode.c | |
parent | 11dd6bcb416c2e937ced2b2bbd35fe10b21f283f (diff) |
performance/io-cache: fix memory leak.
- page table of cache was not being destroyed in ioc_forget.
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 335 (Io-cache optimization)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=335
Diffstat (limited to 'xlators/performance/io-cache/src/ioc-inode.c')
-rw-r--r-- | xlators/performance/io-cache/src/ioc-inode.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xlators/performance/io-cache/src/ioc-inode.c b/xlators/performance/io-cache/src/ioc-inode.c index 5ef2b648a..356afc583 100644 --- a/xlators/performance/io-cache/src/ioc-inode.c +++ b/xlators/performance/io-cache/src/ioc-inode.c @@ -227,6 +227,7 @@ ioc_inode_destroy (ioc_inode_t *ioc_inode) ioc_table_unlock (table); ioc_inode_flush (ioc_inode); + rbthash_table_destroy (ioc_inode->cache.page_table); pthread_mutex_destroy (&ioc_inode->inode_lock); free (ioc_inode); |