summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorAnand Avati <avati@gluster.com>2010-04-08 12:23:31 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-04-08 12:57:13 -0700
commit36ee95ad812bfe781e443cef0825e1ead12fdb7d (patch)
tree36d84e1b4b9d044eb150a4b05a6251e0a683af01 /xlators
parente84fd2a6d04bba29d9c4ec65ea5b194d8f30d833 (diff)
afr: fix inode ref leak in lookup
first success lookup sets local->cont.lookup with inode_ref and second setting leaks Signed-off-by: Anand V. Avati <avati@blackhole.gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 813 (inode ref leak) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=813
Diffstat (limited to 'xlators')
-rw-r--r--xlators/cluster/afr/src/afr.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/xlators/cluster/afr/src/afr.c b/xlators/cluster/afr/src/afr.c
index 9ca5728..6c47967 100644
--- a/xlators/cluster/afr/src/afr.c
+++ b/xlators/cluster/afr/src/afr.c
@@ -786,8 +786,6 @@ afr_fresh_lookup_cbk (call_frame_t *frame, void *cookie,
dict_unref (local->cont.lookup.xattr);
local->cont.lookup.xattr = dict_ref (xattr);
-
- local->cont.lookup.inode = inode_ref (inode);
local->cont.lookup.xattrs[child_index] = dict_ref (xattr);
local->cont.lookup.postparent = *postparent;
@@ -916,7 +914,6 @@ afr_revalidate_lookup_cbk (call_frame_t *frame, void *cookie,
if (local->cont.lookup.xattr)
dict_unref (local->cont.lookup.xattr);
- local->cont.lookup.inode = inode_ref (inode);
local->cont.lookup.xattr = dict_ref (xattr);
local->cont.lookup.xattrs[child_index] = dict_ref (xattr);
local->cont.lookup.postparent = *postparent;