One more missing NDFREE(9).
This commit is contained in:
parent
19e905d90f
commit
4e7ebd879c
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user