diff options
author | Soumya Koduri <skoduri@redhat.com> | 2016-02-16 18:50:23 +0530 |
---|---|---|
committer | Jeff Darcy <jdarcy@redhat.com> | 2016-02-23 20:15:23 -0800 |
commit | 8cf29a4207c162be8e2993ae36f49090851cbbfc (patch) | |
tree | e01751b76bea964c550e0c53450f98b5304b2058 /libglusterfs/src/lkowner.h | |
parent | db747eba347e2909f4fb4fc28a67adb8f188586a (diff) |
rpc: Fix for rpc_transport_t leak
The transport object needs to get unref'ed when the rpc clnt
object is getting destroyed. But currently in rpc_clnt_disable()
we set conn->trans to NULL before it gets unref'ed leading to
transport object leak.
This change is to fix it by setting conn-tran to NULL only when
it is being unref'ed.
Change-Id: I79ba34e28ae19eb616035f36bbed1c2f47875b94
BUG: 1295107
Signed-off-by: Soumya Koduri <skoduri@redhat.com>
Reviewed-on: http://review.gluster.org/13456
Smoke: Gluster Build System <jenkins@build.gluster.com>
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
CentOS-regression: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com>
Reviewed-by: Jeff Darcy <jdarcy@redhat.com>
Diffstat (limited to 'libglusterfs/src/lkowner.h')
0 files changed, 0 insertions, 0 deletions