From 36ee95ad812bfe781e443cef0825e1ead12fdb7d Mon Sep 17 00:00:00 2001 From: Anand Avati Date: Thu, 8 Apr 2010 12:23:31 +0000 Subject: 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 Signed-off-by: Anand V. Avati BUG: 813 (inode ref leak) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=813 --- xlators/cluster/afr/src/afr.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'xlators') diff --git a/xlators/cluster/afr/src/afr.c b/xlators/cluster/afr/src/afr.c index 9ca5728673e..6c479674683 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; -- cgit