commit f2ba3508b31b2bfc5a3eb2db56600107fde6849e
parent 535a6566259370d992a29f0d29c05b045ff93afc
Author: Christian Grothoff <christian@grothoff.org>
Date: Mon, 3 Jun 2019 00:13:48 +0200
add missing unlock (on error path that is usually fatal anyway)
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git 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;