matcha
matcha copied to clipboard
BUG: Missing defer on file operations in PGP key loading
Describe the bug PGP key loading processes multiple files in loop without proper cleanup. Files accumulate until function exit.
To reproduce
- Load many PGP keys from directory
- File handles not closed per iteration
- Resource exhaustion with many keys
Expected behavior Close file immediately after read, not deferred to function exit
Matcha version master
OS All
Additional context File: fetcher/idle.go line 385 Defer in loop anti-pattern
This has had no activity for 30 days. It will be closed in 14 days unless updated. Comment or remove the stale label to keep it open.
Closing due to inactivity. Reopen if still relevant.