summaryrefslogtreecommitdiffstats
path: root/api/src
diff options
context:
space:
mode:
authorZhang Huan <zhanghuan@open-fs.com>2018-07-23 18:15:58 +0800
committerAmar Tumballi <amarts@redhat.com>2018-07-28 07:21:12 +0000
commita6b5ec5cb5e2fb429b51c0d2b064fbd96c9de80c (patch)
tree81c2cc37dc1d28e05e57363955cb8c1e1b15c624 /api/src
parent7f7296d1f52f1b4308551fafad4eb22e3855b382 (diff)
libgfapi: add missing unref of mgmt client in glfs_fini
Change-Id: I89cdf14cb9d822eaf7c01cf0b0220b423eb5b705 fixes: bz#1607689 Signed-off-by: Zhang Huan <zhanghuan@open-fs.com>
Diffstat (limited to 'api/src')
-rw-r--r--api/src/glfs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/api/src/glfs.c b/api/src/glfs.c
index 652520c41eb..6f7b6cde56d 100644
--- a/api/src/glfs.c
+++ b/api/src/glfs.c
@@ -1266,6 +1266,7 @@ pub_glfs_fini (struct glfs *fs)
if (ctx->mgmt) {
rpc_clnt_disable (ctx->mgmt);
+ rpc_clnt_unref (ctx->mgmt);
ctx->mgmt = NULL;
}