From ef27058512773a76853e3c6c715465f87da2b13a Mon Sep 17 00:00:00 2001 From: shishir gowda Date: Mon, 13 Dec 2010 05:31:28 +0000 Subject: Remove check for path in stripe_local_wipe The check for path is done in loc_wipe. During loc_copy, inode ref is taken before path set succeeds or fails. Signed-off-by: shishir gowda Signed-off-by: Anand V. Avati BUG: 2134 (inode leaks on stripe) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2134 --- xlators/cluster/stripe/src/stripe.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/xlators/cluster/stripe/src/stripe.c b/xlators/cluster/stripe/src/stripe.c index ddef10b77ee..3f3c05a3e56 100644 --- a/xlators/cluster/stripe/src/stripe.c +++ b/xlators/cluster/stripe/src/stripe.c @@ -41,10 +41,8 @@ stripe_local_wipe (stripe_local_t *local) if (!local) goto out; - if (local->loc.path) - loc_wipe (&local->loc); - if (local->loc2.path) - loc_wipe (&local->loc2); + loc_wipe (&local->loc); + loc_wipe (&local->loc2); out: return; } -- cgit