summaryrefslogtreecommitdiffstats
path: root/glusterfsd/src/glusterfsd.c
diff options
context:
space:
mode:
Diffstat (limited to 'glusterfsd/src/glusterfsd.c')
-rw-r--r--glusterfsd/src/glusterfsd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/glusterfsd/src/glusterfsd.c b/glusterfsd/src/glusterfsd.c
index eb2f61ba577..4d8eb22fe0c 100644
--- a/glusterfsd/src/glusterfsd.c
+++ b/glusterfsd/src/glusterfsd.c
@@ -661,7 +661,7 @@ cleanup_and_exit (int signum)
glusterfs_mgmt_pmap_signout (ctx);
if (ctx->mgmt)
- rpc_clnt_destroy (ctx->mgmt);
+ rpc_clnt_unref (ctx->mgmt);
gf_log ("glusterfsd", GF_LOG_NORMAL, "shutting down");