From 611ecc623b12303ae6dc15cc578133aa286a2185 Mon Sep 17 00:00:00 2001 From: Conrad Meyer Date: Tue, 12 Dec 2017 01:19:08 +0000 Subject: [PATCH] gzip(1): Remove duplicate close() CID: 1383560 Reported by: Coverity Sponsored by: Dell EMC Isilon --- usr.bin/gzip/gzip.c | 1 - 1 file changed, 1 deletion(-) diff --git a/usr.bin/gzip/gzip.c b/usr.bin/gzip/gzip.c index 18a8f97e27fa..60e025894d8b 100644 --- a/usr.bin/gzip/gzip.c +++ b/usr.bin/gzip/gzip.c @@ -1444,7 +1444,6 @@ file_uncompress(char *file, char *outfile, size_t outsize) goto lose; } if (fstat(fd, &isb) != 0) { - close(fd); maybe_warn("can't stat %s", file); goto lose; }