summaryrefslogtreecommitdiff
path: root/ray.c
diff options
context:
space:
mode:
Diffstat (limited to 'ray.c')
-rw-r--r--ray.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ray.c b/ray.c
index 7672779..2470777 100644
--- a/ray.c
+++ b/ray.c
@@ -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);