aio: add forgotten mutex_destroy

This commit is contained in:
Thomas Schoebel-Theuer 2024-05-29 11:52:54 +02:00
parent ca86fbb024
commit 31b1a599b8
1 changed files with 1 additions and 0 deletions

View File

@ -534,6 +534,7 @@ void aio_stop_thread(struct aio_output *output, int i, bool do_submit_dummy)
(60 - i * 2) * HZ); (60 - i * 2) * HZ);
if (likely(tinfo->terminated)) { if (likely(tinfo->terminated)) {
brick_thread_stop(tinfo->thread); brick_thread_stop(tinfo->thread);
mutex_destroy(&tinfo->mutex);
} else { } else {
MARS_ERR("thread %d did not terminate - leaving a zombie\n", i); MARS_ERR("thread %d did not terminate - leaving a zombie\n", i);
} }