Skip to content

Commit

Permalink
Merge pull request #606 from cole-miller/fix-threadpool
Browse files Browse the repository at this point in the history
Fix use-after-free in threadpool code
  • Loading branch information
Mathieu Borderé authored Feb 23, 2024
2 parents 0dcd0a3 + 6a24f18 commit e8f52fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/threadpool.c
Original file line number Diff line number Diff line change
Expand Up @@ -525,8 +525,8 @@ int pool_init(pool_t *pool,

rc = uv_async_init(loop, &pi->outq_async, work_done);
if (rc != 0) {
free(pi);
uv_mutex_destroy(&pi->outq_mutex);
free(pi);
return rc;
}

Expand Down

0 comments on commit e8f52fb

Please sign in to comment.