summaryrefslogtreecommitdiffstats
path: root/transport
diff options
context:
space:
mode:
authorRaghavendra G <raghavendra@gluster.com>2009-09-15 00:32:23 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-09-14 23:33:11 -0700
commit973b964e68df39ec5c2e8a4699be84644c76864b (patch)
treebd769f680eaaf81224115ae6e251a2468a9aa182 /transport
parent80969eaf4e2ef58c051d6679fb678172b26022bb (diff)
transport/ib-verbs: initialize fini member of new-transports created during accepting client connections.
- This bug used to cause a memory leak of 2 * sizeof(ib_verbs_private_t) for each new client connection. Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 259 (Memory leak on server side when there are large number of disconnections from clients) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=259
Diffstat (limited to 'transport')
-rw-r--r--transport/ib-verbs/src/ib-verbs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/transport/ib-verbs/src/ib-verbs.c b/transport/ib-verbs/src/ib-verbs.c
index e39a45eb50e..2d0d82ac865 100644
--- a/transport/ib-verbs/src/ib-verbs.c
+++ b/transport/ib-verbs/src/ib-verbs.c
@@ -2212,6 +2212,8 @@ ib_verbs_server_event_handler (int fd, int idx, void *data,
this->ops = trans->ops;
this->xl = trans->xl;
+ this->init = trans->init;
+ this->fini = trans->fini;
memcpy (&this->myinfo.sockaddr, &trans->myinfo.sockaddr,
trans->myinfo.sockaddr_len);