From df0ed92f44fa168c0d02866796f3707687f43214 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Sat, 29 Oct 2011 01:29:23 -0700 Subject: Fix problems crashing when freeing TLS on windows --- p11-kit/util.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'p11-kit') diff --git a/p11-kit/util.c b/p11-kit/util.c index c7f6138..c04b636 100644 --- a/p11-kit/util.c +++ b/p11-kit/util.c @@ -319,6 +319,8 @@ static void free_tls_value (LPVOID data) { p11_local *local = data; + if (local == NULL) + return; if (local->last_error) LocalFree (local->last_error); LocalFree (data); -- cgit v1.1