matcha icon indicating copy to clipboard operation
matcha copied to clipboard

BUG: Missing defer on debugIMAPFile close

Open andrinoff opened this issue 7 months ago • 2 comments

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

  1. Export DEBUG_IMAP=./debug.log
  2. Run matcha for extended period
  3. 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

andrinoff avatar Apr 21 '26 14:04 andrinoff

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.

floatpanebot avatar May 22 '26 06:05 floatpanebot

Closing due to inactivity. Reopen if still relevant.

floatpanebot avatar Jun 04 '26 19:06 floatpanebot