Skip to content

CAT 026

unurgunite edited this page Jul 11, 2026 · 3 revisions

CAT-026 — Dir.open resource leak

Field Value
Severity error
Confidence high
Auto-fix

Dir.open resource leak — Dir.open without a block leaks directory handles. Use the block form for automatic closing.

Bad code

d = Dir.open("/path")
files = d.entries

Clone this wiki locally