summaryrefslogtreecommitdiffstats
path: root/transport
diff options
context:
space:
mode:
authorRaghavendra G <raghavendra@gluster.com>2009-09-15 00:33:30 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-09-14 23:33:04 -0700
commitad33df39dec4850c249c453822a99b3038b41389 (patch)
treedc22cf8d505b9d573cca70d54c35226b8eb0a4f1 /transport
parente73e7afe5630894faa7a2829969cd16ea99e3c71 (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 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);