From fa4e9d639b95b557ae64dab38c4c3ff8a0ec0d7a Mon Sep 17 00:00:00 2001 From: "Anand V. Avati" Date: Fri, 16 Oct 2009 07:30:22 +0000 Subject: 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 BUG: 315 (generation number support) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=315 --- xlators/cluster/dht/src/dht-common.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'xlators') 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; -- cgit