diff options
author | Pranith Kumar K <pkarampu@redhat.com> | 2014-07-16 15:03:19 +0530 |
---|---|---|
committer | Niels de Vos <ndevos@redhat.com> | 2014-07-18 03:28:22 -0700 |
commit | c7fbb78ec198968069821cb0769071d17df1c58b (patch) | |
tree | 299f07d9050b789ff49477d45335aeb263820dff /xlators/cluster/afr/src/afr-self-heal-data.c | |
parent | af82523251f4fa35afe6bd2da5d0391da7635fed (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-heal-data.c')
-rw-r--r-- | xlators/cluster/afr/src/afr-self-heal-data.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xlators/cluster/afr/src/afr-self-heal-data.c b/xlators/cluster/afr/src/afr-self-heal-data.c index 6c895dbde5d..08983e66f20 100644 --- a/xlators/cluster/afr/src/afr-self-heal-data.c +++ b/xlators/cluster/afr/src/afr-self-heal-data.c @@ -918,6 +918,9 @@ afr_set_data_sh_info_str (afr_local_t *local, afr_self_heal_t *sh, xlator_t *thi if (sizes_str && strcmp (sizes_str, "")) GF_FREE (sizes_str); + + if (sinks_str && strcmp (sinks_str, "")) + GF_FREE (sinks_str); } void |