summaryrefslogtreecommitdiffstats
path: root/glusterfsd
diff options
context:
space:
mode:
Diffstat (limited to 'glusterfsd')
-rw-r--r--glusterfsd/src/glusterfsd-mgmt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/glusterfsd/src/glusterfsd-mgmt.c b/glusterfsd/src/glusterfsd-mgmt.c
index 69c049d6793..d4201b38ecb 100644
--- a/glusterfsd/src/glusterfsd-mgmt.c
+++ b/glusterfsd/src/glusterfsd-mgmt.c
@@ -1380,7 +1380,8 @@ out:
free (rsp.spec);
- emancipate (ctx, ret);
+ if (ctx)
+ emancipate (ctx, ret);
// Stop if server is running at an unsupported op-version
if (ENOTSUP == ret) {