From 07e8d8a37713d39f63713d8c05dd99a0610a3c35 Mon Sep 17 00:00:00 2001 From: Raghavendra G Date: Wed, 28 Oct 2009 16:15:37 +0000 Subject: performance/io-cache: fix memory leak. - page table of cache was not being destroyed in ioc_forget. Signed-off-by: Anand V. Avati BUG: 335 (Io-cache optimization) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=335 --- xlators/performance/io-cache/src/ioc-inode.c | 1 + 1 file changed, 1 insertion(+) (limited to 'xlators/performance') 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); -- cgit