fix: Check heap allocations

master
Sean McBride 3 years ago
parent 32469bf1ab
commit bd94d0e645

@ -96,8 +96,11 @@ void
runtime_initialize(void)
{
runtime_worker_threads = calloc(runtime_worker_threads_count, sizeof(pthread_t));
assert(runtime_worker_threads != NULL);
runtime_worker_threads_argument = calloc(runtime_worker_threads_count, sizeof(int));
assert(runtime_worker_threads_argument != NULL);
runtime_worker_threads_deadline = malloc(runtime_worker_threads_count * sizeof(uint64_t));
assert(runtime_worker_threads_deadline != NULL);
memset(runtime_worker_threads_deadline, UINT8_MAX, runtime_worker_threads_count * sizeof(uint64_t));
http_total_init();

Loading…
Cancel
Save