From 6f56b9872d1e8b4f6a632cd534a69525d94c9445 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Tue, 20 Jan 2009 13:20:00 +0100 Subject: [PATCH] utils_cache: Unlock the cache mutex before returning in an error condition. --- src/utils_cache.c | 1 + 1 file changed, 1 insertion(+) 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); } -- 2.30.2