diff options
author | peter <peter@FreeBSD.org> | 1999-04-10 18:53:29 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1999-04-10 18:53:29 +0000 |
commit | 27798065075c40d2a717ef6503cde276883204b7 (patch) | |
tree | df8fc4ebaa46d723230e8b3bb0207fe45eccdec0 /sys/nfs | |
parent | 4c3f741f0c1e261a383ad0ce26ae922f8e4d9d84 (diff) | |
download | FreeBSD-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/nfs')
-rw-r--r-- | sys/nfs/nfs_vfsops.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/nfs/nfs_vfsops.c b/sys/nfs/nfs_vfsops.c index 9b5accd..7c2b6ec 100644 --- a/sys/nfs/nfs_vfsops.c +++ b/sys/nfs/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)); |