summaryrefslogtreecommitdiffstats
path: root/sys/nfsclient/nfs_vfsops.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1999-04-10 18:53:29 +0000
committerpeter <peter@FreeBSD.org>1999-04-10 18:53:29 +0000
commit27798065075c40d2a717ef6503cde276883204b7 (patch)
treedf8fc4ebaa46d723230e8b3bb0207fe45eccdec0 /sys/nfsclient/nfs_vfsops.c
parent4c3f741f0c1e261a383ad0ce26ae922f8e4d9d84 (diff)
downloadFreeBSD-src-27798065075c40d2a717ef6503cde276883204b7.zip
FreeBSD-src-27798065075c40d2a717ef6503cde276883204b7.tar.gz
Close a potential mbuf and/or mbuf cluster leak in the client-side NFS
statfs() code. Free the whole chain, not just the first one.
Diffstat (limited to 'sys/nfsclient/nfs_vfsops.c')
-rw-r--r--sys/nfsclient/nfs_vfsops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/nfsclient/nfs_vfsops.c b/sys/nfsclient/nfs_vfsops.c
index 9b5accd..7c2b6ec 100644
--- a/sys/nfsclient/nfs_vfsops.c
+++ b/sys/nfsclient/nfs_vfsops.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs_vfsops.c 8.12 (Berkeley) 5/20/95
- * $Id: nfs_vfsops.c,v 1.81 1999/01/28 17:32:01 dillon Exp $
+ * $Id: nfs_vfsops.c,v 1.82 1999/02/16 10:49:54 dfr Exp $
*/
#include <sys/param.h>
@@ -283,7 +283,7 @@ nfs_statfs(mp, sbp, p)
nfsm_postop_attr(vp, retattr);
if (error) {
if (mrep != NULL)
- m_free(mrep);
+ m_freem(mrep);
goto nfsmout;
}
nfsm_dissect(sfp, struct nfs_statfs *, NFSX_STATFS(v3));
OpenPOWER on IntegriCloud