diff --git a/src/util/disk_cache.c b/src/util/disk_cache.c index 77af64ed3b0..0cd92ca2d5b 100644 --- a/src/util/disk_cache.c +++ b/src/util/disk_cache.c @@ -440,6 +440,7 @@ void disk_cache_destroy(struct disk_cache *cache) { if (cache && !cache->path_init_failed) { + util_queue_finish(&cache->cache_queue); util_queue_destroy(&cache->cache_queue); munmap(cache->index_mmap, cache->index_mmap_size); }