Skip to content

Commit 39020d5

Browse files
Fix thread leak in external_syncvar test. Fixes #197.
1 parent d6ce514 commit 39020d5

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)