diff options
author | mckusick <mckusick@FreeBSD.org> | 2012-04-18 19:30:22 +0000 |
---|---|---|
committer | mckusick <mckusick@FreeBSD.org> | 2012-04-18 19:30:22 +0000 |
commit | be8731298f76613cdf510faf03b669409c82ed02 (patch) | |
tree | 87cc576478d0d3bc188713f6c4484905be3288ae /sys/kern | |
parent | 164dd155ca1447641996d72047b852a54ccc3aa0 (diff) | |
download | FreeBSD-src-be8731298f76613cdf510faf03b669409c82ed02.zip FreeBSD-src-be8731298f76613cdf510faf03b669409c82ed02.tar.gz |
Fix a memory leak of M_VNODE_MARKER introduced in 234386.
Found by: Peter Holm
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/vfs_subr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index 7d72443..c6c9ecc 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -4528,10 +4528,10 @@ __mnt_vnode_first_all(struct vnode **mvp, struct mount *mp) /* Check if we are done */ if (vp == NULL) { - *mvp = NULL; MNT_REL(mp); MNT_IUNLOCK(mp); free(*mvp, M_VNODE_MARKER); + *mvp = NULL; return (NULL); } (*mvp)->v_mount = mp; |