diff options
author | Poornima <pgurusid@redhat.com> | 2014-02-05 00:15:33 +0000 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2014-02-08 08:21:21 -0800 |
commit | f32e00692e2dd2b375c95d26f69529d48d1d2a80 (patch) | |
tree | 7215bd504dad8bf4aa01fe9c315da54872ee2fcf /xlators | |
parent | 0ff6a1da6ac4a4b0e01ae50f1d8e3605e36bf2fc (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>
Diffstat (limited to 'xlators')
-rw-r--r-- | xlators/cluster/afr/src/pump.c | 1 |
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; } |