From 687d6739b28fc7bdd2ef1eac161558083b8fac43 Mon Sep 17 00:00:00 2001 From: Andres Amaya Garcia Date: Mon, 26 Nov 2018 21:23:28 +0000 Subject: [PATCH] Fix resource leak of file desc in test code --- tests/suites/helpers.function | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/suites/helpers.function b/tests/suites/helpers.function index 32b1b790d..6f7c07dbc 100644 --- a/tests/suites/helpers.function +++ b/tests/suites/helpers.function @@ -175,6 +175,7 @@ static int redirect_output( FILE** out_stream, const char* path ) if( *out_stream == NULL ) { + close( stdout_fd ); return -1; }