From: Pekka Riikonen Date: Tue, 10 Jul 2001 12:18:08 +0000 (+0000) Subject: updates. X-Git-Tag: robodoc-323~85 X-Git-Url: http://git.silcnet.org/gitweb/?p=silc.git;a=commitdiff_plain;h=43e7f70697626c5c3d4e7909a169aee0d7be15d8 updates. --- diff --git a/lib/silcutil/win32/silcwin32thread.c b/lib/silcutil/win32/silcwin32thread.c index 5c32cb3f..76ba9024 100644 --- a/lib/silcutil/win32/silcwin32thread.c +++ b/lib/silcutil/win32/silcwin32thread.c @@ -80,11 +80,10 @@ void silc_thread_exit(void *exit_value) if (thread) { /* If the thread is waitable the memory is freed only in silc_thread_wait by another thread. If not waitable, free it now. */ - if (!thread->waitable) - { - CloseHandle(thread->thread); - silc_free(thread); - } + if (!thread->waitable) { + CloseHandle(thread->thread); + silc_free(thread); + } TlsSetValue(silc_thread_tls, NULL); }