summaryrefslogtreecommitdiffstats
path: root/rpc
diff options
context:
space:
mode:
Diffstat (limited to 'rpc')
-rw-r--r--rpc/rpc-lib/src/rpc-transport.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/rpc/rpc-lib/src/rpc-transport.c b/rpc/rpc-lib/src/rpc-transport.c
index 8bb6b595175..7e70b5dfdb1 100644
--- a/rpc/rpc-lib/src/rpc-transport.c
+++ b/rpc/rpc-lib/src/rpc-transport.c
@@ -165,7 +165,9 @@ rpc_transport_cleanup(rpc_transport_t *trans)
if (!trans)
return;
- trans->fini(trans);
+ if (trans->fini)
+ trans->fini(trans);
+
GF_FREE(trans->name);
if (trans->xl)