From 556b890ad91780c52c77dccaddcf69beb8184e27 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Tue, 27 Aug 2013 14:47:46 +0200 Subject: [PATCH] src: call uv_loop_delete() on exit in debug mode Should make tracing with valgrind a little easier on the eye and possibly help expose libuv handle lifecycle issues. --- src/node.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/node.cc b/src/node.cc index d148116..1a410cf 100644 --- a/src/node.cc +++ b/src/node.cc @@ -3181,6 +3181,7 @@ int Start(int argc, char *argv[]) { #ifndef NDEBUG // Clean up. Not strictly necessary. V8::Dispose(); + uv_loop_delete(uv_default_loop()); #endif // NDEBUG // Clean up the copy: -- 2.7.4