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