Index: libcfa/src/concurrency/io/setup.cfa
===================================================================
--- libcfa/src/concurrency/io/setup.cfa	(revision fe9468e277ef63e8b357a912be5295032d77be2c)
+++ libcfa/src/concurrency/io/setup.cfa	(revision bfcf6b93d595af7bc5fcb05405720c63f503db8f)
@@ -132,6 +132,5 @@
 		// Wait for the io poller thread to finish
 
-		pthread_join( iopoll.thrd, 0p );
-		free( iopoll.stack );
+		__destroy_pthread( iopoll.thrd, iopoll.stack, 0p );
 
 		int ret = close(iopoll.epollfd);
