From aa4b648fef5459826e18f41ddc53dc7ee6255560 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=A4rkl?= Date: Sat, 31 Aug 2019 18:18:04 +0200 Subject: [PATCH] Free Cond and Mutex of GKCrypt --- lib/src/gkcrypt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/src/gkcrypt.c b/lib/src/gkcrypt.c index a8baf47..f8be2c1 100644 --- a/lib/src/gkcrypt.c +++ b/lib/src/gkcrypt.c @@ -113,6 +113,8 @@ CHIAKI_EXPORT void chiaki_gkcrypt_fini(ChiakiGKCrypt *gkcrypt) chiaki_mutex_unlock(&gkcrypt->key_buf_mutex); chiaki_cond_signal(&gkcrypt->key_buf_cond); chiaki_thread_join(&gkcrypt->key_buf_thread, NULL); + chiaki_cond_fini(&gkcrypt->key_buf_cond); + chiaki_mutex_fini(&gkcrypt->key_buf_mutex); chiaki_aligned_free(gkcrypt->key_buf); } }