From 56f34582c74c01f77b77f8b8f49e0e739ee5f5ab Mon Sep 17 00:00:00 2001 From: Emmanuel Ledoux Date: Tue, 26 May 2015 17:55:27 +0200 Subject: [PATCH] winpr-thread: added an assertion to enforce that thread_list is correctly set --- winpr/libwinpr/thread/thread.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/winpr/libwinpr/thread/thread.c b/winpr/libwinpr/thread/thread.c index f6a85c868..d0aaeec8c 100644 --- a/winpr/libwinpr/thread/thread.c +++ b/winpr/libwinpr/thread/thread.c @@ -349,7 +349,8 @@ static BOOL winpr_StartThread(WINPR_THREAD *thread) WLog_ERR(TAG, "failed to launch the thread"); goto error; } - + assert(ListDictionary_Contains(thread_list, &thread->thread)); + pthread_attr_destroy(&attr); dump_thread(thread); return TRUE;