diff options
-rw-r--r-- | common/library.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/library.c b/common/library.c index effb3a6..37cb1c8 100644 --- a/common/library.c +++ b/common/library.c @@ -179,6 +179,7 @@ p11_library_init (void) p11_debug_init (); p11_debug ("initializing library"); p11_mutex_init (&p11_library_mutex); + p11_mutex_init (&p11_virtual_mutex); thread_local = TlsAlloc (); if (thread_local == TLS_OUT_OF_INDEXES) p11_debug ("couldn't setup tls"); @@ -210,6 +211,7 @@ p11_library_uninit (void) LocalFree (data); TlsFree (thread_local); } + p11_mutex_uninit (&p11_virtual_mutex); p11_mutex_uninit (&p11_library_mutex); } |