summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVijay Bellur <vbellur@redhat.com>2016-01-29 15:59:24 -0500
committerPranith Kumar Karampuri <pkarampu@redhat.com>2016-02-08 05:26:19 -0800
commit3db831788c3bd0d0a47466ad715894d27535e1b9 (patch)
tree73b85f69e3d21a78f49507faf944580067cbced0
parentde6e9200cfbb91ee98abfb6c046c16805388631a (diff)
cluster/dht: Cleanup dict in dht_do_rename()v3.7.8
Change-Id: Ib4b3a843e78eccf5b8e0e7776cd0128013a59a3e BUG: 1304889 Signed-off-by: Vijay Bellur <vbellur@redhat.com> Reviewed-on: http://review.gluster.org/13322 CentOS-regression: Gluster Build System <jenkins@build.gluster.com> Smoke: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> Reviewed-by: Raghavendra G <rgowdapp@redhat.com> Reviewed-on: http://review.gluster.org/13358
-rw-r--r--xlators/cluster/dht/src/dht-rename.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xlators/cluster/dht/src/dht-rename.c b/xlators/cluster/dht/src/dht-rename.c
index 5b8d91d501c..0f8f6b2ddd5 100644
--- a/xlators/cluster/dht/src/dht-rename.c
+++ b/xlators/cluster/dht/src/dht-rename.c
@@ -910,6 +910,8 @@ dht_do_rename (call_frame_t *frame)
STACK_WIND (frame, dht_rename_cbk,
rename_subvol, rename_subvol->fops->rename,
&local->loc, &local->loc2, dict);
+ if (dict)
+ dict_unref (dict);
return 0;
}