diff options
-rw-r--r-- | ray.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -179,6 +179,7 @@ trace_scene(float time, unsigned char *buf, int threaded) { for(int i = 0; i < num_threads; ++i) pthread_join(threads[i], NULL); + free(threads); } else { for(int i = 0; i < HEIGHT; ++i) trace_line(i, buf + i * 4 * WIDTH); |