diff options
author | Anand V. Avati <avati@blackhole.gluster.com> | 2009-10-16 07:30:22 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2009-10-16 06:22:06 -0700 |
commit | fa4e9d639b95b557ae64dab38c4c3ff8a0ec0d7a (patch) | |
tree | 7ee35deec8a819ae72ef8823c5637924972ebb9c /xlators/cluster/dht/src/dht-common.c | |
parent | 3defca52e68cd65b6a32876e00de72832e247171 (diff) |
fix double initialization of dht_local_t
This was causing leak of the first initialized frame->local in
every create call
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 315 (generation number support)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=315
Diffstat (limited to 'xlators/cluster/dht/src/dht-common.c')
-rw-r--r-- | xlators/cluster/dht/src/dht-common.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/xlators/cluster/dht/src/dht-common.c b/xlators/cluster/dht/src/dht-common.c index 5fc31224dcd..b8996d46ecf 100644 --- a/xlators/cluster/dht/src/dht-common.c +++ b/xlators/cluster/dht/src/dht-common.c @@ -2875,13 +2875,6 @@ dht_create (call_frame_t *frame, xlator_t *this, goto err; } - local = dht_local_init (frame); - if (!local) { - op_errno = ENOMEM; - gf_log (this->name, GF_LOG_ERROR, - "Out of memory"); - goto err; - } ret = loc_dup (loc, &local->loc); if (ret == -1) { op_errno = ENOMEM; |