diff --git a/tests/suites/helpers.function b/tests/suites/helpers.function index 2e227f02c..1255ff4be 100644 --- a/tests/suites/helpers.function +++ b/tests/suites/helpers.function @@ -342,6 +342,7 @@ static int redirect_output( FILE** out_stream, const char* path ) if( *out_stream == NULL ) { + close( stdout_fd ); return -1; }