Commit 80b10b4f authored by Ben Noordhuis's avatar Ben Noordhuis
Browse files

src: fix use-after-free in inspector agent

uv_close() is an asynchronous operation.  Calling it on a data member
inside the destructor is unsound because its memory is about to be
reclaimed but libuv is not done with it yet.

PR-URL: https://github.com/nodejs/node/pull/7907


Reviewed-By: default avatarAli Ijaz Sheikh <ofrobots@google.com>
Reviewed-By: default avatarEugene Ostroukhov <eostroukhov@chromium.org>
Reviewed-By: default avatarJames M Snell <jasnell@gmail.com>
parent 75c6d9dd
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment