Skip to content

util/disk_cache: Don't leak when cache is empty

Daniel Stone requested to merge daniels/mesa:util-cache-fix-leak into main

When we exit early having failed to find any candidate cache files to evict, don't leak the list head whilst doing so.

Signed-off-by: Daniel Stone daniels@collabora.com Fixes: f58e6fee ("util/disk_cache: delete more cache items in one go when full") Ref: !11523 (merged)

/cc @tarceri @pepp

Merge request reports