Close the correct file descriptor.

MFC after:	2 weeks
This commit is contained in:
Xin LI 2017-12-12 06:56:21 +00:00
parent bf1b92967f
commit f5e4607265
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=326791

View file

@ -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;
}