mirror of
https://github.com/opnsense/src.git
synced 2026-04-20 21:59:20 -04:00
Fix memory leak in semunload().
PR: 133064 Submitted by: Mateusz Guzik <mjguzik@gmail.com> MFC after: 1 week
This commit is contained in:
parent
136694a420
commit
1fa80eb15c
1 changed files with 1 additions and 0 deletions
|
|
@ -285,6 +285,7 @@ semunload(void)
|
|||
free(semu, M_SEM);
|
||||
for (i = 0; i < seminfo.semmni; i++)
|
||||
mtx_destroy(&sema_mtx[i]);
|
||||
free(sema_mtx, M_SEM);
|
||||
mtx_destroy(&sem_mtx);
|
||||
mtx_destroy(&sem_undo_mtx);
|
||||
return (0);
|
||||
|
|
|
|||
Loading…
Reference in a new issue