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 6d96516..6779bba 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);
       }