From 24bdc787f9ffa5ab2ac82ef776f7bc3ea925f591 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Fri, 27 Sep 2019 23:59:00 +0200 Subject: Fix missing mutex unlick in data writer error path Signed-off-by: David Oberhollenzer --- lib/sqfs/data_writer/pthread.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') diff --git a/lib/sqfs/data_writer/pthread.c b/lib/sqfs/data_writer/pthread.c index 9c9b0a2..3cdf8fb 100644 --- a/lib/sqfs/data_writer/pthread.c +++ b/lib/sqfs/data_writer/pthread.c @@ -257,6 +257,7 @@ int test_and_set_status(sqfs_data_writer_t *proc, int status) status = proc->status; } pthread_cond_broadcast(&proc->queue_cond); + pthread_mutex_unlock(&proc->mtx); return status; } -- cgit v1.2.3