diff options
author | Brent Cook <bcook@cvs.openbsd.org> | 2020-12-22 13:07:55 +0000 |
---|---|---|
committer | Brent Cook <bcook@cvs.openbsd.org> | 2020-12-22 13:07:55 +0000 |
commit | 3249d958c533111055c2e9719c36c307b370f253 (patch) | |
tree | 5efa3f63ecf5acff05dcbb2c30943ba4bdf51d7b /lib/libtls | |
parent | 093e29265006792ecaf0031e50479e6b4bae6944 (diff) |
Destroy the mutex in tls_config objects when tls_config_free is called.
Add a stub for pthread_mutex_destroy() for installers.
ok tb@
Diffstat (limited to 'lib/libtls')
-rw-r--r-- | lib/libtls/tls_config.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libtls/tls_config.c b/lib/libtls/tls_config.c index 7d50eb4ba24..7a0d6d8adf2 100644 --- a/lib/libtls/tls_config.c +++ b/lib/libtls/tls_config.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tls_config.c,v 1.60 2020/12/22 02:20:44 bcook Exp $ */ +/* $OpenBSD: tls_config.c,v 1.61 2020/12/22 13:07:54 bcook Exp $ */ /* * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> * @@ -179,6 +179,8 @@ tls_config_free(struct tls_config *config) free((char *)config->crl_mem); free(config->ecdhecurves); + pthread_mutex_destroy(&config->mutex); + free(config); } |