From dc2476cd690ddb28b5eb6264086c03fc2aeb55c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlo=20Marcelo=20Arenas=20Bel=C3=B3n?= Date: Tue, 2 Oct 2018 13:12:56 -0700 Subject: [PATCH] test: avoid memory leak for test_output PR-URL: https://github.com/libuv/libuv/pull/2017 Reviewed-By: Ben Noordhuis Reviewed-By: Colin Ihrig Reviewed-By: Sakthipriyan Vairamani Reviewed-By: Santiago Gimeno Reviewed-By: Richard Lau Reviewed-By: John Barboza --- test/test-spawn.c | 1 + 1 file changed, 1 insertion(+) diff --git a/test/test-spawn.c b/test/test-spawn.c index 4fcd905e..594a64c6 100644 --- a/test/test-spawn.c +++ b/test/test-spawn.c @@ -1172,6 +1172,7 @@ TEST_IMPL(argument_escaping) { for (i = 0; i < count; ++i) { free(test_output[i]); } + free(test_output); result = make_program_args(verbatim, 1, &verbatim_output); ASSERT(result == 0);