diff options
Diffstat (limited to 'unix/tclUnixThrd.c')
-rw-r--r-- | unix/tclUnixThrd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/unix/tclUnixThrd.c b/unix/tclUnixThrd.c index 76b6b80..5030086 100644 --- a/unix/tclUnixThrd.c +++ b/unix/tclUnixThrd.c @@ -663,7 +663,7 @@ TclpInitAllocCache(void) { pthread_mutex_lock(allocLockPtr); pthread_key_create(&key, TclpFreeAllocCache); - pthread_mutex_unlock(allocLockPtr); + pthread_mutex_unlock(allocLockPtr); } void @@ -677,7 +677,7 @@ TclpFreeAllocCache( TclFreeAllocCache(ptr); pthread_setspecific(key, NULL); - + } else { pthread_key_delete(key); } |