matcha
matcha copied to clipboard
BUG: Missing defer on debugIMAPFile close
Describe the bug debugIMAPFile opened at fetcher/fetcher.go:35-47 and never closed, causing file descriptor leak when DEBUG_IMAP env var set.
To reproduce
- Export DEBUG_IMAP=./debug.log
- Run matcha for extended period
- File descriptor leaked
Expected behavior Use defer file.Close() or close on application shutdown
Matcha version master
OS All
Additional context File: fetcher/fetcher.go lines 35-47 Global var debugIMAPFile never closed
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.