summaryrefslogtreecommitdiff
path: root/lib/libtls/tls_config.c
diff options
context:
space:
mode:
authorBrent Cook <bcook@cvs.openbsd.org>2020-12-21 14:45:18 +0000
committerBrent Cook <bcook@cvs.openbsd.org>2020-12-21 14:45:18 +0000
commit408f36d3ae6ec7209494513a3fb5caa2a864dcd0 (patch)
treed482cbf2e21f021a987b101c8f625b545659307f /lib/libtls/tls_config.c
parentcf44a7ed275b7caea7078451692fb8ba98102720 (diff)
Destroy the mutex in a tls_config object when tls_config_free is called.
ok inoguchi@
Diffstat (limited to 'lib/libtls/tls_config.c')
-rw-r--r--lib/libtls/tls_config.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libtls/tls_config.c b/lib/libtls/tls_config.c
index ed471708350..c46ebd02a9a 100644
--- a/lib/libtls/tls_config.c
+++ b/lib/libtls/tls_config.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tls_config.c,v 1.58 2020/01/20 08:39:21 jsing Exp $ */
+/* $OpenBSD: tls_config.c,v 1.59 2020/12/21 14:45:17 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);
}