mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-17 05:43:59 +00:00
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:
parent
9724167c2a
commit
5b959aa44f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=168576
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue