diff options
| author | Baptiste Daroussin <bapt@FreeBSD.org> | 2026-03-26 07:40:29 +0000 |
|---|---|---|
| committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2026-03-26 07:40:29 +0000 |
| commit | 33424fd50ee0333bc6f70b5b14a270b85e5b5de1 (patch) | |
| tree | 49a5da84a91fbaa233d012b4b8a7869dabbc58a3 | |
| parent | 6d8b2ac449f34423be9d56492022421db61d920e (diff) | |
diff3: plug fd leak
MFC After: 1 week
Reported by: kib
| -rw-r--r-- | usr.bin/diff3/diff3.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.bin/diff3/diff3.c b/usr.bin/diff3/diff3.c index 75e8c6297855..8212b51e15a2 100644 --- a/usr.bin/diff3/diff3.c +++ b/usr.bin/diff3/diff3.c @@ -947,6 +947,7 @@ wait_and_check(int pd) if (errno != EINTR) err(2, "pdwait"); } + close(pd); if (WIFEXITED(status) && WEXITSTATUS(status) >= 2) errx(2, "diff exited abnormally"); |
