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>
This commit is contained in:
Zhang Huan 2018-07-23 18:15:58 +08:00 committed by Amar Tumballi
parent 7f7296d1f5
commit a6b5ec5cb5

View File

@ -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;
}