summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/afr/src/afr-self-heald.c
diff options
context:
space:
mode:
authorPranith Kumar K <pkarampu@redhat.com>2014-07-16 15:03:19 +0530
committerNiels de Vos <ndevos@redhat.com>2014-07-18 03:28:22 -0700
commitc7fbb78ec198968069821cb0769071d17df1c58b (patch)
tree299f07d9050b789ff49477d45335aeb263820dff /xlators/cluster/afr/src/afr-self-heald.c
parentaf82523251f4fa35afe6bd2da5d0391da7635fed (diff)
cluster/afr: Fix leaks in self-heal code path
Change-Id: I5301ec9ebac27afe52e85cad75e6395d7f891355 BUG: 1120151 Signed-off-by: Pranith Kumar K <pkarampu@redhat.com> Reviewed-on: http://review.gluster.org/8316 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Krishnan Parthasarathi <kparthas@redhat.com> Reviewed-by: Ravishankar N <ravishankar@redhat.com> Reviewed-by: Niels de Vos <ndevos@redhat.com>
Diffstat (limited to 'xlators/cluster/afr/src/afr-self-heald.c')
-rw-r--r--xlators/cluster/afr/src/afr-self-heald.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/xlators/cluster/afr/src/afr-self-heald.c b/xlators/cluster/afr/src/afr-self-heald.c
index dfa91d78501..c35ce359911 100644
--- a/xlators/cluster/afr/src/afr-self-heald.c
+++ b/xlators/cluster/afr/src/afr-self-heald.c
@@ -1498,6 +1498,9 @@ out:
if (ret)
*pos = AFR_POS_UNKNOWN;
loc_wipe (&loc);
+ if (xattr_rsp)
+ dict_unref (xattr_rsp);
+
return ret;
}