From f2ba3508b31b2bfc5a3eb2db56600107fde6849e Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 3 Jun 2019 00:13:48 +0200 Subject: [PATCH] add missing unlock (on error path that is usually fatal anyway) --- src/exchange/taler-exchange-httpd_keystate.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/exchange/taler-exchange-httpd_keystate.c b/src/exchange/taler-exchange-httpd_keystate.c index a452a1246..8b56813e3 100644 --- a/src/exchange/taler-exchange-httpd_keystate.c +++ b/src/exchange/taler-exchange-httpd_keystate.c @@ -1808,6 +1808,7 @@ TEH_KS_acquire_ (struct GNUNET_TIME_Absolute now, /* bump RC by 1 if we released internal_key_state above */ if (NULL == internal_key_state) { + GNUNET_assert (0 == pthread_mutex_unlock (&internal_key_state_mutex)); GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Failed to initialize key state\n"); return NULL;