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

async_hooks: fix leak in AsyncLocalStorage exit #35779

Closed
wants to merge 1 commit into from

Commits on Nov 11, 2020

  1. async_hooks: fix leak in AsyncLocalStorage exit

    If exit is called and then run or enterWith are called within the
    exit function, the als instace should not be added to the storageList
    additional times. The correct behaviour is to remove the instance
    from the storageList before executing the exit handler and then to
    restore it after.
    Qard committed Nov 11, 2020
    Configuration menu
    Copy the full SHA
    86dca8a View commit details
    Browse the repository at this point in the history