summaryrefslogtreecommitdiffstats
path: root/xlators/nfs
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/nfs')
-rw-r--r--xlators/nfs/lib/src/xdr-nfs3.c3
-rw-r--r--xlators/nfs/server/src/nfs3.c1
2 files changed, 2 insertions, 2 deletions
diff --git a/xlators/nfs/lib/src/xdr-nfs3.c b/xlators/nfs/lib/src/xdr-nfs3.c
index 0ea23dc1c..97ec1b6fe 100644
--- a/xlators/nfs/lib/src/xdr-nfs3.c
+++ b/xlators/nfs/lib/src/xdr-nfs3.c
@@ -1891,8 +1891,7 @@ xdr_free_write3args_nocopy (write3args *wa)
if (!wa)
return;
- GF_FREE (wa->file.data.data_val);
- GF_FREE (wa);
+ FREE (wa->file.data.data_val);
}
diff --git a/xlators/nfs/server/src/nfs3.c b/xlators/nfs/server/src/nfs3.c
index 16a5e6521..3aed70a97 100644
--- a/xlators/nfs/server/src/nfs3.c
+++ b/xlators/nfs/server/src/nfs3.c
@@ -1929,6 +1929,7 @@ nfs3svc_write_vec (rpcsvc_request_t *req, struct iobuf *iob)
ret = nfs3_write (req, (struct nfs3_fh *)args->file.data.data_val,
args->offset, args->count, args->stable, payload,iob);
xdr_free_write3args_nocopy (args);
+ GF_FREE (args);
if (ret < 0) {
gf_log (GF_NFS3, GF_LOG_ERROR, "WRITE procedure failed");
nfs_rpcsvc_request_seterr (req, SYSTEM_ERR);