diff --git a/tools/qflight/source/threads.c b/tools/qflight/source/threads.c index b248c5dbe..dc4c5cc43 100644 --- a/tools/qflight/source/threads.c +++ b/tools/qflight/source/threads.c @@ -102,9 +102,9 @@ RunThreadsOn (threadfunc_t *func) fprintf (stderr, "pthread_join failed"); free (l[i]); } - } + } else #endif - else { + { lightinfo_t *l = malloc (sizeof (lightinfo_t)); func (l); }