Code

utils_cache: Unlock the cache mutex before returning in an error condition.
authorSebastian Harl <sh@tokkee.org>
Tue, 20 Jan 2009 12:20:00 +0000 (13:20 +0100)
committerSebastian Harl <sh@tokkee.org>
Tue, 20 Jan 2009 12:20:00 +0000 (13:20 +0100)
src/utils_cache.c

index 6d96516900c7f9d03d1cc39a2b3abef8c89a96f8..6779bba86c829ddd25bb9e3b0802bf7d7f0a43e9 100644 (file)
@@ -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);
       }