Closed fushijian closed 8 years ago
the code in thpool.c at 143 lines is as blow: thpool_p->threads = (struct thread*)malloc(num_threads \ sizeof(struct thread));
i think it shuold be thpool_p->threads = (struct thread*)malloc(num_threads * sizeof(struct thread ));
Nice catch! This definitely is a bug.
+1 for merging this fix into master
the code in thpool.c at 143 lines is as blow: thpool_p->threads = (struct thread*)malloc(num_threads \ sizeof(struct thread));
i think it shuold be
thpool_p->threads = (struct thread*)malloc(num_threads * sizeof(struct thread ));