mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-24 08:16:33 +01:00
Fix resource leak of file desc in test code
This commit is contained in:
parent
556d7d9e3b
commit
687d6739b2
1 changed files with 1 additions and 0 deletions
|
|
@ -175,6 +175,7 @@ static int redirect_output( FILE** out_stream, const char* path )
|
|||
|
||||
if( *out_stream == NULL )
|
||||
{
|
||||
close( stdout_fd );
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue