mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04: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
1 changed files with 1 additions and 0 deletions
|
|
@ -103,6 +103,7 @@ badcred:
|
|||
PROC_UNLOCK(p);
|
||||
crfree(newcred);
|
||||
bail:
|
||||
mtx_destroy(&pr->pr_mtx);
|
||||
FREE(pr, M_PRISON);
|
||||
return (error);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue