diff options
author | Raghavendra G <raghavendra@gluster.com> | 2009-10-08 06:20:50 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2009-10-09 00:48:11 -0700 |
commit | 59d4142ff1938e3b327fb81bee49402057ae1382 (patch) | |
tree | 655ddf92d530fa5168b7ca7c68fce3b4a8396980 /libglusterfs | |
parent | 3949b2828a78e4ecb95edb06f09fb9e7e3e5ce9b (diff) |
performance/stat-prefetch: fix memory leaks
- sp_cache_get_inode uses fd_lookup which internally increases the refcount of
fd by 1. This needs to be unrefed once we get the cache.
- for directories, stat is stored in the inode context in sp_lookup_cbk.
but, while doing so, no check was being done for the presence of context
in inode, resulting in leak of memory equal to sizeof (struct stat) when
multiple lookups happened on the directory.
- path constructed in sp_readdir was not freed.
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 221 (stat prefetch implementation)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=221
Diffstat (limited to 'libglusterfs')
0 files changed, 0 insertions, 0 deletions