summaryrefslogtreecommitdiffstats
path: root/xlators/cluster
diff options
context:
space:
mode:
authorRaghavendra G <raghavendra@zresearch.com>2009-03-23 23:45:53 -0700
committerAnand V. Avati <avati@amp.gluster.com>2009-03-24 21:53:12 +0530
commit8f590ad883c170827cc06dcbcb17e5aaa1788996 (patch)
treed1791e109768a42c994dc3aafe415736c25d8eac /xlators/cluster
parent270621b34af7528755373e04b07f959c8dca274b (diff)
dht memory leak fix
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
Diffstat (limited to 'xlators/cluster')
-rw-r--r--xlators/cluster/dht/src/dht-common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/cluster/dht/src/dht-common.c b/xlators/cluster/dht/src/dht-common.c
index 7bce090cbd6..d7a16fa425d 100644
--- a/xlators/cluster/dht/src/dht-common.c
+++ b/xlators/cluster/dht/src/dht-common.c
@@ -3362,7 +3362,7 @@ dht_forget (xlator_t *this, inode_t *inode)
inode_ctx_get (inode, this, &tmp_layout);
- if (!layout)
+ if (!tmp_layout)
return 0;
layout = (dht_layout_t *)(long)tmp_layout;
if (!layout->preset)