From 7cff10a6c56c662104cb1f9145ab45c94da4862d Mon Sep 17 00:00:00 2001 From: Thiago de Arruda Date: Mon, 3 Nov 2014 16:05:47 -0300 Subject: [PATCH] test: Add valgrind suppression for libuv memory leak A memory leak happens in uv_spawn when stdio is set to UV_IGNORE and the child process fails to start. This only happens when libuv is compiled with gcc and optimizations enabled(the default). Compiling with '-O0' removes the leak, but all that can be done right now is ignore the leak by adding a valgrind suppression. --- .valgrind.supp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.valgrind.supp b/.valgrind.supp index f788030151..ec4bd50df5 100644 --- a/.valgrind.supp +++ b/.valgrind.supp @@ -30,3 +30,10 @@ fun:vim_strsave fun:ex_function } +{ + uv_spawn_with_optimizations + Memcheck:Leak + fun:malloc + fun:uv_spawn + fun:job_start +}