MFC rev. 1.166:

Fix leak in NAMEI zone caused by nfs server when VOP_RENAME fails.

Approved by:	re (hrs)
This commit is contained in:
kib 2006-11-03 09:16:48 +00:00
parent 88233f85f8
commit e83da74386

View File

@ -2532,8 +2532,8 @@ out:
tond.ni_dvp = NULL;
tond.ni_vp = NULL;
if (error) {
fromnd.ni_cnd.cn_flags &= ~HASBUF;
tond.ni_cnd.cn_flags &= ~HASBUF;
NDFREE(&fromnd, NDF_ONLY_PNBUF);
NDFREE(&tond, NDF_ONLY_PNBUF);
}
} else {
if (error == -1)