summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaghavendra G <raghavendra@gluster.com>2010-08-18 09:11:12 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-08-18 07:50:32 -0700
commit03df0871493d111116f168ec5331bffe99f6470f (patch)
tree14caa71447def53b60e9aaef8dcebffc09350d30
parentb189d31f61ac3436bf0ad9ae2bff13efccbc06d0 (diff)
rpcsvc: unref transport stored in request before putting request structure back to mem-pool.v3.1.0prealpha2
Signed-off-by: Raghavendra G <raghavendra@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 875 (Implement a new protocol to provide proper backward/forward compatibility) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=875
-rw-r--r--rpc/rpc-lib/src/rpcsvc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/rpc/rpc-lib/src/rpcsvc.c b/rpc/rpc-lib/src/rpcsvc.c
index 82a19bb..e12403e 100644
--- a/rpc/rpc-lib/src/rpcsvc.c
+++ b/rpc/rpc-lib/src/rpcsvc.c
@@ -780,9 +780,10 @@ rpcsvc_request_destroy (rpcsvc_request_t *req)
iobref_unref (req->iobref);
}
+ rpc_transport_unref (req->trans);
+
mem_put (req->svc->rxpool, req);
- rpc_transport_unref (req->trans);
out:
return;
}