summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPoornima <pgurusid@redhat.com>2014-02-05 00:15:33 +0000
committerVijay Bellur <vbellur@redhat.com>2014-02-08 08:21:21 -0800
commitf32e00692e2dd2b375c95d26f69529d48d1d2a80 (patch)
tree7215bd504dad8bf4aa01fe9c315da54872ee2fcf
parent0ff6a1da6ac4a4b0e01ae50f1d8e3605e36bf2fc (diff)
cluster/afr: Fix memory leak.
Change-Id: I811d104684905a5a9a794cde8e925bd1a97f6546 BUG: 789278 Signed-off-by: Poornima <pgurusid@redhat.com> Reviewed-on: http://review.gluster.org/6906 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Vijay Bellur <vbellur@redhat.com>
-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;
}