Skip to content

Commit 619afe9

Browse files
Merge pull request #203 from insertinterestingnamehere/tleak_fix
Fix Thread Leak In `external_syncva` Test
2 parents d6ce514 + 39020d5 commit 619afe9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/basics/external_syncvar.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ int main(void)
3434
qthread_syncvar_readFE(&readout, &x);
3535
iprintf("found readout = %lu\n", (unsigned long)readout);
3636

37-
return 0;
37+
return pthread_join(thread, NULL);
3838
}
3939

4040
/* vim:set expandtab: */

0 commit comments

Comments
 (0)