From 43e7f70697626c5c3d4e7909a169aee0d7be15d8 Mon Sep 17 00:00:00 2001 From: Pekka Riikonen Date: Tue, 10 Jul 2001 12:18:08 +0000 Subject: [PATCH] updates. --- lib/silcutil/win32/silcwin32thread.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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); } -- 2.24.0