mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-11 09:50:12 +00:00
Don't forget to destroy the mutex if an error occurs
in the jail() system call. Submitted by: Pawel Jakub Dawidek <nick@garage.freebsd.pl>
This commit is contained in:
parent
b94a2c38ca
commit
894db7b01f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=108128
@ -103,6 +103,7 @@ jail(td, uap)
|
||||
PROC_UNLOCK(p);
|
||||
crfree(newcred);
|
||||
bail:
|
||||
mtx_destroy(&pr->pr_mtx);
|
||||
FREE(pr, M_PRISON);
|
||||
return (error);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user