mirror of
https://github.com/ARMmbed/mbedtls.git
synced 2025-05-30 17:48:17 +08:00
Fix resource leak of file desc in test code
This commit is contained in:
parent
556d7d9e3b
commit
687d6739b2
@ -175,6 +175,7 @@ static int redirect_output( FILE** out_stream, const char* path )
|
|||||||
|
|
||||||
if( *out_stream == NULL )
|
if( *out_stream == NULL )
|
||||||
{
|
{
|
||||||
|
close( stdout_fd );
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user