Commit ea9daefe authored by Michael Niedermayer's avatar Michael Niedermayer

compat/os2threads: Check av_malloc() return code

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent cea3c9b2
......@@ -66,6 +66,8 @@ static av_always_inline int pthread_create(pthread_t *thread, const pthread_attr
struct thread_arg *thread_arg;
thread_arg = av_mallocz(sizeof(struct thread_arg));
if (!thread_arg)
return ENOMEM;
thread_arg->start_routine = start_routine;
thread_arg->arg = arg;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment