src: plug trace file file descriptor leak · nodejs/node@ce48936 · GitHub
Skip to content

Commit ce48936

Browse files
addaleaxtargos
authored andcommitted
src: plug trace file file descriptor leak
Close existing file descriptors before overriding the field with new ones. Also, use `nullptr` as the loop for these synchronous operations, since they do not run on the same thread as the `uv_run()` call for the previously used loop. PR-URL: #21867 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Eugene Ostroukhov <eostroukhov@google.com> Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com>
1 parent 89e2302 commit ce48936

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

src/tracing/node_trace_writer.cc

Lines changed: 7 additions & 2 deletions

0 commit comments

Comments
 (0)