diff options
author | Joseph Fernandes <josferna@redhat.com> | 2015-12-03 15:40:16 +0530 |
---|---|---|
committer | Dan Lambright <dlambrig@redhat.com> | 2015-12-06 17:55:59 -0800 |
commit | 02d54bb750c5ad41b81881ce63dd756582aad543 (patch) | |
tree | 60c3303d129db1096657fb974335c183e9ca4964 /xlators/cluster | |
parent | be377d4bed954fc8cdbc515329882c1fd0f7ab37 (diff) |
tier/dht: Fix mem leak from lookup response dict
Fixing memory leak from response dict during a parent
lookup to get the path.
Change-Id: I60c23d0b25e7f763f0e53c40e71ee053aba6d555
BUG: 1288019
Signed-off-by: Joseph Fernandes <josferna@redhat.com>
Reviewed-on: http://review.gluster.org/12867
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Joseph Fernandes
Tested-by: Joseph Fernandes
Diffstat (limited to 'xlators/cluster')
-rw-r--r-- | xlators/cluster/dht/src/tier.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/xlators/cluster/dht/src/tier.c b/xlators/cluster/dht/src/tier.c index 3943e6fd33d..32bec8849b5 100644 --- a/xlators/cluster/dht/src/tier.c +++ b/xlators/cluster/dht/src/tier.c @@ -522,6 +522,12 @@ abort: loc_wipe (&loc); loc_wipe (&p_loc); + + if (xdata_response) { + dict_unref (xdata_response); + xdata_response = NULL; + } + if ((total_files > defrag->tier_conf.max_migrate_files) || (total_migrated_bytes > defrag->tier_conf.max_migrate_bytes)) { |