From ad33df39dec4850c249c453822a99b3038b41389 Mon Sep 17 00:00:00 2001 From: Raghavendra G Date: Tue, 15 Sep 2009 00:33:30 +0000 Subject: 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 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 --- transport/ib-verbs/src/ib-verbs.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'transport') diff --git a/transport/ib-verbs/src/ib-verbs.c b/transport/ib-verbs/src/ib-verbs.c index b1ce52184..8938b58e1 100644 --- a/transport/ib-verbs/src/ib-verbs.c +++ b/transport/ib-verbs/src/ib-verbs.c @@ -2182,6 +2182,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); -- cgit