diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-06-03 00:13:48 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-06-03 00:13:48 +0200 |
commit | f2ba3508b31b2bfc5a3eb2db56600107fde6849e (patch) | |
tree | eaf5da6477e159e57f029674f8d032a401783130 /src | |
parent | 535a6566259370d992a29f0d29c05b045ff93afc (diff) |
add missing unlock (on error path that is usually fatal anyway)
Diffstat (limited to 'src')
-rw-r--r-- | src/exchange/taler-exchange-httpd_keystate.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; |