Also destroy the pthread_attr_t
commit4b918b12cd632df82b0d33cf11dcad08783d1cfc
authorJonas Claeson <jonas.cl@protonmail.com>
dateSat 23 Mar 2019, 11:05 (8 years ago)
parent01e5bb8
rts/idris_rts.c+1
@@ -826,6 +826,7 @@ void* vmThread(VM* callvm, func f, VAL arg) {
826826 callvm->processes++;
827827
828828 int ok = pthread_create(&t, &attr, runThread, td);
829+ pthread_attr_destroy(&attr);
829830// usleep(100);
830831 if (ok == 0) {
831832 return vm;