From dc10948a186931f22df2b1d3b4053c0c6bcac1de Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Thu, 5 Aug 2010 10:15:25 +0000 Subject: fix memory-leak in case of disconnections in RPC server Signed-off-by: Amar Tumballi Signed-off-by: Anand V. Avati BUG: 1227 (memory leak in rpcsvc_conn_alloc) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1227 --- rpc/rpc-lib/src/rpc-transport.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'rpc/rpc-lib/src/rpc-transport.c') diff --git a/rpc/rpc-lib/src/rpc-transport.c b/rpc/rpc-lib/src/rpc-transport.c index 50379c149..b8ef43450 100644 --- a/rpc/rpc-lib/src/rpc-transport.c +++ b/rpc/rpc-lib/src/rpc-transport.c @@ -1171,6 +1171,8 @@ rpc_transport_destroy (rpc_transport_t *this) GF_VALIDATE_OR_GOTO("rpc_transport", this, fail); + rpc_transport_disconnect (this); + if (this->fini) this->fini (this); pthread_mutex_destroy (&this->lock); -- cgit