From d7642fb9bc13bb9c2da35bd8e80c311d5fc5096c Mon Sep 17 00:00:00 2001 From: shishir gowda Date: Wed, 22 Jun 2011 04:24:58 +0000 Subject: Stripe selfheal: Prevent spurious STACK_DESTROY call The stack is destroyed in the cbk Signed-off-by: shishir gowda Signed-off-by: Anand Avati BUG: 3056 ([4597929cc527f8abaf9ef9e1d5499ea416e5c7ff] Crash in client at client3_1_mknod_cbk) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=3056 --- xlators/cluster/stripe/src/stripe.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'xlators/cluster/stripe') diff --git a/xlators/cluster/stripe/src/stripe.c b/xlators/cluster/stripe/src/stripe.c index 0d075e4967e..b3f59c86154 100644 --- a/xlators/cluster/stripe/src/stripe.c +++ b/xlators/cluster/stripe/src/stripe.c @@ -209,6 +209,10 @@ stripe_entry_self_heal (call_frame_t *frame, xlator_t *this, trav = trav->next; } + if (dict) + dict_unref (dict); + return 0; + out: if (rframe) STRIPE_STACK_DESTROY (rframe); -- cgit