Fix resource leak of file desc in test code
This commit is contained in:
parent
e26f79ba67
commit
97a184ba84
1 changed files with 1 additions and 0 deletions
|
@ -144,6 +144,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…
Add table
Add a link
Reference in a new issue