summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--xlators/cluster/afr/src/pump.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/xlators/cluster/afr/src/pump.c b/xlators/cluster/afr/src/pump.c
index 9027e2a3318..e229bf52ad9 100644
--- a/xlators/cluster/afr/src/pump.c
+++ b/xlators/cluster/afr/src/pump.c
@@ -1678,6 +1678,7 @@ pump_setxattr (call_frame_t *frame, xlator_t *this,
ret = afr_local_init (local, priv, &op_errno);
if (ret < 0) {
afr_local_cleanup (local, this);
+ mem_put (local);
goto out;
}