mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-27 19:24:06 +00:00
Fix coverity warning.
- Mutex was left locked when malloc failed. Fixed.
This commit is contained in:
parent
1c3873f5b2
commit
1c6c4963e7
|
@ -294,6 +294,7 @@ int threadqueue_init(threadqueue_queue_t * const threadqueue, int thread_count,
|
|||
threadqueue->threads_running++;
|
||||
} else {
|
||||
fprintf(stderr, "Could not allocate threadqueue_worker_spec structure!\n");
|
||||
PTHREAD_UNLOCK(&threadqueue->lock);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue