From: Stef Walter Date: Wed, 3 Apr 2013 08:43:03 +0000 (+0200) Subject: Don't use free() on memory allocated by LocalFree() X-Git-Tag: 0.18.0~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c3f1b0a45eb1c28b6f025f8ae56c3b020801b6aa;p=p11-kit Don't use free() on memory allocated by LocalFree() ihttps://bugs.freedesktop.org/show_bug.cgi?id=63046 --- diff --git a/common/library.c b/common/library.c index 1f9dc7a..2d54fd5 100644 --- a/common/library.c +++ b/common/library.c @@ -192,7 +192,7 @@ p11_library_uninit (void) if (thread_local != TLS_OUT_OF_INDEXES) { p11_message_storage = dont_store_message; data = TlsGetValue (thread_local); - free (data); + LocalFree (data); TlsFree (thread_local); } p11_mutex_uninit (&p11_library_mutex);