test: fix memory leaks in inspector tests · nodejs/node@c565c17 · GitHub
Skip to content

Commit c565c17

Browse files
bnoordhuiscjihrig
authored andcommitted
test: fix memory leaks in inspector tests
The inspector tests weren't closing open libuv handles properly, making valgrind complain. Strengthen the uv_loop_close() check while here. With this commit applied: $ valgrind ./out/Release/cctest 2>&1 | grep 'total heap' | cut -c31- 1,017 allocs, 1,017 frees, 21,695,456 bytes allocated PR-URL: #7906 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent b75ca50 commit c565c17

1 file changed

Lines changed: 12 additions & 15 deletions

File tree

test/cctest/test_inspector_socket.cc

Lines changed: 12 additions & 15 deletions

0 commit comments

Comments
 (0)