summaryrefslogtreecommitdiffstats
path: root/xlators/nfs
diff options
context:
space:
mode:
authorRaghavendra Bhat <raghavendrabhat@gluster.com>2012-03-30 13:33:10 +0530
committerAnand Avati <avati@redhat.com>2012-03-30 15:50:42 -0700
commit73c789cd9c530ded113905ef7efb47e1ac3251d6 (patch)
tree2da3bac6c2928ba52e186d002922e405bcf280c0 /xlators/nfs
parent6f10f48a6a1632cd62206fd84634ab0e5db1c361 (diff)
nlm: do not destroy the NULL client object
Change-Id: Ie1946b33353a91a266d2b21727d0c8eaa06af7f9 BUG: 808341 Signed-off-by: Raghavendra Bhat <raghavendrabhat@gluster.com> Reviewed-on: http://review.gluster.com/3046 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Jeff Darcy <jdarcy@redhat.com> Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'xlators/nfs')
-rw-r--r--xlators/nfs/server/src/nlm4.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/xlators/nfs/server/src/nlm4.c b/xlators/nfs/server/src/nlm4.c
index d73d1bce41a..b54e14b10df 100644
--- a/xlators/nfs/server/src/nlm4.c
+++ b/xlators/nfs/server/src/nlm4.c
@@ -510,7 +510,8 @@ int nsm_monitor(char *host)
out:
GF_FREE(nsm_mon.mon_id.mon_name);
GF_FREE(nsm_mon.mon_id.my_id.my_name);
- clnt_destroy(clnt);
+ if (clnt != NULL)
+ clnt_destroy(clnt);
return retstat;
}