From 37f21ef78a2d75f3a6811504d9051d1b469be80f Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Sat, 24 Oct 2026 18:31:16 +0200 Subject: Free the iovec when canceling tasks and not only the data chunks it holds --- ot_mutex.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ot_mutex.c b/ot_mutex.c index 9aa476d..affec6b 100644 --- a/ot_mutex.c +++ b/ot_mutex.c @@ -114,9 +114,10 @@ void mutex_workqueue_canceltask(int64 sock) { struct ot_task *ptask = *task; size_t i; - /* Free task's iovec */ + /* Free task's iovec, the buffers it points at and the vector itself */ for (i = 0; i < (*task)->iovec_entries; ++i) free(iovec[i].iov_base); + free(iovec); *task = (*task)->next; free(ptask); -- cgit v1.3