diff --git a/tests/suites/helpers.function b/tests/suites/helpers.function index 32b1b790d4..6f7c07dbcb 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; }