diff options
author | 2020-12-21 14:45:17 +0000 | |
---|---|---|
committer | 2020-12-21 14:45:17 +0000 | |
commit | 9e1bb93b225f9db7daa99778c1e2f0e4875e6fcd (patch) | |
tree | d6ad158e88d473b15652ebafdb3d358949f8611f | |
parent | Only enable rasops1_putchar8() and rasops1_putchar16() optomizations on (diff) | |
download | wireguard-openbsd-9e1bb93b225f9db7daa99778c1e2f0e4875e6fcd.tar.xz wireguard-openbsd-9e1bb93b225f9db7daa99778c1e2f0e4875e6fcd.zip |
Destroy the mutex in a tls_config object when tls_config_free is called.
ok inoguchi@
-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 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); } |