summaryrefslogtreecommitdiffstats
path: root/xlators/nfs/server/src/mount3udp_svc.c
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/nfs/server/src/mount3udp_svc.c')
-rw-r--r--xlators/nfs/server/src/mount3udp_svc.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/xlators/nfs/server/src/mount3udp_svc.c b/xlators/nfs/server/src/mount3udp_svc.c
index 2c370a74a96..aa38b1cc40e 100644
--- a/xlators/nfs/server/src/mount3udp_svc.c
+++ b/xlators/nfs/server/src/mount3udp_svc.c
@@ -78,12 +78,9 @@ mountudpproc3_mnt_3_svc(dirpath **dpp, struct svc_req *req)
return res;
err:
- if (fh)
- GF_FREE (fh);
- if (res)
- GF_FREE (res);
- if (autharr)
- GF_FREE (autharr);
+ GF_FREE (fh);
+ GF_FREE (res);
+ GF_FREE (autharr);
return NULL;
}