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.5.3~9^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6f56b9872d1e8b4f6a632cd534a69525d94c9445;p=thirdparty%2Fcollectd.git 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 6d9651690..6779bba86 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); }