mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-05-02 08:12:14 +02:00
Fix resource leak of file desc in test code
This commit is contained in:
@@ -144,6 +144,7 @@ static int redirect_output( FILE** out_stream, const char* path )
|
||||
|
||||
if( *out_stream == NULL )
|
||||
{
|
||||
close( stdout_fd );
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user