diff options
author | pjd <pjd@FreeBSD.org> | 2004-09-14 19:27:59 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2004-09-14 19:27:59 +0000 |
commit | 4e7ebd879c74920fc2eefaf660838f2a340595d8 (patch) | |
tree | e32c98944403720862e888da8edeabc08cf4507f /sys/dev/md | |
parent | 19e905d90f22055d474c4b6e75204f4864d69eb7 (diff) | |
download | FreeBSD-src-4e7ebd879c74920fc2eefaf660838f2a340595d8.zip FreeBSD-src-4e7ebd879c74920fc2eefaf660838f2a340595d8.tar.gz |
One more missing NDFREE(9).
Diffstat (limited to 'sys/dev/md')
-rw-r--r-- | sys/dev/md/md.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/md/md.c b/sys/dev/md/md.c index f9ef42d..a312425 100644 --- a/sys/dev/md/md.c +++ b/sys/dev/md/md.c @@ -892,6 +892,7 @@ mdcreate_vnode(struct md_ioctl *mdio, struct thread *td) NDINIT(&nd, LOOKUP, FOLLOW, UIO_USERSPACE, mdio->md_file, td); error = vn_open(&nd, &flags, 0, -1); if (error) { + NDFREE(&nd, NDF_ONLY_PNBUF); if (error != EACCES && error != EPERM && error != EROFS) return (error); flags &= ~FWRITE; |