mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-22 18:56:38 +00:00
Close the correct file descriptor.
MFC after: 2 weeks
This commit is contained in:
parent
bf1b92967f
commit
f5e4607265
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=326791
|
@ -1718,7 +1718,7 @@ file_uncompress(char *file, char *outfile, size_t outsize)
|
|||
if (fd != -1)
|
||||
close(fd);
|
||||
if (zfd != -1 && zfd != STDOUT_FILENO)
|
||||
close(fd);
|
||||
close(zfd);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue