Skip to content

fix: close file handles and DB connections to prevent resource leaks#2

Merged
expAdd3 merged 1 commit into
expAdd3:mainfrom
w59227c:fix/resource-leaks-issue-1
Jun 24, 2026
Merged

fix: close file handles and DB connections to prevent resource leaks#2
expAdd3 merged 1 commit into
expAdd3:mainfrom
w59227c:fix/resource-leaks-issue-1

Conversation

@w59227c

@w59227c w59227c commented Jun 24, 2026

Copy link
Copy Markdown
Collaborator
  • install_hooks.py / uninstall.py: use with-open context managers
  • cc_hook.py: wrap DB connection in try/finally to guarantee close
  • cc_monitor.py: close conn in run_cli() finally and on CCMonitor app quit

Closes #1

- install_hooks.py / uninstall.py: use with-open context managers
- cc_hook.py: wrap DB connection in try/finally to guarantee close
- cc_monitor.py: close conn in run_cli() finally and on CCMonitor app quit

Closes expAdd3#1
@expAdd3 expAdd3 merged commit 30d93a2 into expAdd3:main Jun 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Resource leaks: unclosed files and DB connections in multiple modules

2 participants