diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-06-05 23:02:14 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-06-05 23:29:34 +0200 |
commit | 5158e2c0f4f93a3b1a9dbce39a8b011732a71141 (patch) | |
tree | 73e76c3adefbc03d7ba347c47f93ac89ff84cdd8 /src/selftest/cookie.c | |
parent | ci: test on 12.1 and 12.2 (diff) | |
download | wireguard-freebsd-5158e2c0f4f93a3b1a9dbce39a8b011732a71141.tar.xz wireguard-freebsd-5158e2c0f4f93a3b1a9dbce39a8b011732a71141.zip |
global: destroy rwlocks and mtxs
Before, most uses of rwlock and mtx never called the destroy method,
which might cause problems for witness.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/selftest/cookie.c')
-rw-r--r-- | src/selftest/cookie.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/selftest/cookie.c b/src/selftest/cookie.c index 4076e4c..ab0de60 100644 --- a/src/selftest/cookie.c +++ b/src/selftest/cookie.c @@ -292,6 +292,8 @@ cookie_mac_test(void) T_PASSED; ret = true; cleanup: + cookie_checker_free(&checker); + cookie_maker_free(&maker); return ret; } |