Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using exit() when you rely on LEAVE to close resources is a trap #1581

Closed
AlexDaniel opened this issue Sep 25, 2017 · 0 comments
Closed

Using exit() when you rely on LEAVE to close resources is a trap #1581

AlexDaniel opened this issue Sep 25, 2017 · 0 comments
Labels
docs Documentation issue (primary issue type) trap

Comments

@AlexDaniel
Copy link
Member

AlexDaniel commented Sep 25, 2017

From the docs on LEAVE:

Runs at every block exit time (even stack unwinds from exceptions).

… but not when you use exit.

This means that the expected resource closing may not happen.

@AlexDaniel AlexDaniel added the docs Documentation issue (primary issue type) label Sep 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation issue (primary issue type) trap
Projects
None yet
Development

No branches or pull requests

1 participant