From: Sebastian Harl Date: Tue, 20 Jan 2009 12:20:00 +0000 (+0100) Subject: utils_cache: Unlock the cache mutex before returning in an error condition. X-Git-Tag: collectd-4.6.0~19^2~2^2~2 X-Git-Url: https://git.octo.it/?p=collectd.git;a=commitdiff_plain;h=6f56b9872d1e8b4f6a632cd534a69525d94c9445 utils_cache: Unlock the cache mutex before returning in an error condition. --- diff --git a/src/utils_cache.c b/src/utils_cache.c index 6d965169..6779bba8 100644 --- a/src/utils_cache.c +++ b/src/utils_cache.c @@ -262,6 +262,7 @@ int uc_check_timeout (void) { ERROR ("uc_purge: realloc failed."); c_avl_iterator_destroy (iter); + pthread_mutex_unlock (&cache_lock); return (-1); }