]> granicus.if.org Git - p11-kit/commitdiff
Don't use free() on memory allocated by LocalFree()
authorStef Walter <stefw@gnome.org>
Wed, 3 Apr 2013 08:43:03 +0000 (10:43 +0200)
committerStef Walter <stefw@gnome.org>
Wed, 3 Apr 2013 08:43:03 +0000 (10:43 +0200)
ihttps://bugs.freedesktop.org/show_bug.cgi?id=63046

common/library.c

index 1f9dc7ab2ed604ad1475f1f8b38c4126329d7d5e..2d54fd50d9cfe70cb41be2c2591d30822240259d 100644 (file)
@@ -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);