Fix the NAMEI zone leak when snapshot was successfully created.

Reported and tested by:	Peter Holm
MFC after:		2 weeks
This commit is contained in:
Konstantin Belousov 2007-04-10 09:31:42 +00:00
parent 9724167c2a
commit 5b959aa44f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=168576

View file

@ -807,6 +807,7 @@ ffs_snapshot(mp, snapfile)
FREE(copy_fs->fs_csp, M_UFSMNT);
bawrite(sbp);
out:
NDFREE(&nd, NDF_ONLY_PNBUF);
if (saved_nice > 0) {
PROC_LOCK(td->td_proc);
mtx_lock_spin(&sched_lock);