Merge "pthread_exit: Replace pthread_exit with return to avoid memory leak"