summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorshishir gowda <shishirng@gluster.com>2011-06-22 04:24:58 +0000
committerAnand Avati <avati@gluster.com>2011-06-22 08:41:01 -0700
commitd7642fb9bc13bb9c2da35bd8e80c311d5fc5096c (patch)
tree60018b47c04b4bf6703bc343394dd8a7aab945a8
parent9123fd82ab1946ed6f2c3d025043da1183d84d31 (diff)
Stripe selfheal: Prevent spurious STACK_DESTROY call
The stack is destroyed in the cbk Signed-off-by: shishir gowda <shishirng@gluster.com> Signed-off-by: Anand Avati <avati@gluster.com> BUG: 3056 ([4597929cc527f8abaf9ef9e1d5499ea416e5c7ff] Crash in client at client3_1_mknod_cbk) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=3056
-rw-r--r--xlators/cluster/stripe/src/stripe.c4
1 files changed, 4 insertions, 0 deletions
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);