Eliminate a memory leak in kern_symlink() that could occur if
vn_start_write() failed.
This commit is contained in:
parent
8eec77b09e
commit
f52e2ef29f
@ -1493,7 +1493,7 @@ restart:
|
||||
NDFREE(&nd, NDF_ONLY_PNBUF);
|
||||
vput(nd.ni_dvp);
|
||||
if ((error = vn_start_write(NULL, &mp, V_XSLEEP | PCATCH)) != 0)
|
||||
return (error);
|
||||
goto out;
|
||||
goto restart;
|
||||
}
|
||||
VATTR_NULL(&vattr);
|
||||
|
@ -1493,7 +1493,7 @@ restart:
|
||||
NDFREE(&nd, NDF_ONLY_PNBUF);
|
||||
vput(nd.ni_dvp);
|
||||
if ((error = vn_start_write(NULL, &mp, V_XSLEEP | PCATCH)) != 0)
|
||||
return (error);
|
||||
goto out;
|
||||
goto restart;
|
||||
}
|
||||
VATTR_NULL(&vattr);
|
||||
|
Loading…
x
Reference in New Issue
Block a user