Properly release lock before abort.

Fixes #162.
This commit is contained in:
Pascal Obry
2021-09-07 07:41:44 +02:00
parent 34a6c3e574
commit 48508fcf87
+1
View File
@@ -106,6 +106,7 @@ static CURL* get_connection(const char* path)
if (!curl)
{
debugf(DBG_LEVEL_NORM, KRED"curl alloc failed");
pthread_mutex_unlock(&pool_mut);
abort();
}
pthread_mutex_unlock(&pool_mut);