diff options
-rw-r--r-- | p11-kit/util.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |