diff options
author | Raghavendra G <raghavendra@gluster.com> | 2009-10-07 03:39:45 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2009-10-07 02:36:16 -0700 |
commit | e2b1e7bb775b2f2f95357550bac786961ec9848a (patch) | |
tree | 3d3768d909e1a5117b814bf86a1f454cc6614885 /xlators/performance/stat-prefetch/src/Makefile.am | |
parent | 65c68a0e9ae3d504bde99a81744c1b1103480430 (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. stat was needed to serve the
postparent member during lookup. postparent stat is needed only in releases
having NFS related changes and hence removing code present to get
postparent.
- path constructed in sp_readdir was not freed.
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 257 (Backport stat-prefetch to 2.0)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=257
Diffstat (limited to 'xlators/performance/stat-prefetch/src/Makefile.am')
0 files changed, 0 insertions, 0 deletions