From 060380d460caa74b30eb6c0dedc8e25c64030acf Mon Sep 17 00:00:00 2001 From: Shehjar Tikoo Date: Thu, 2 Sep 2010 06:10:11 +0000 Subject: nfs3: Free vectored write args using FREE not GF_FREE ..because the file handle in write3args is allocated inside libc using malloc not memory accounting code in glusterfs. Signed-off-by: Shehjar Tikoo Signed-off-by: Vijay Bellur BUG: 1499 (GNFS from mainline Glusterfs-3.1-qa13 crashes while initiating SFS2008) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1499 --- xlators/nfs/server/src/nfs3.c | 1 + 1 file changed, 1 insertion(+) (limited to 'xlators/nfs/server') diff --git a/xlators/nfs/server/src/nfs3.c b/xlators/nfs/server/src/nfs3.c index 16a5e65218f..3aed70a97d5 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); -- cgit