diff3: plug fd leak

MFC After:	1 week
Reported by:	kib
This commit is contained in:
Baptiste Daroussin
2026-03-26 08:40:29 +01:00
parent 6d8b2ac449
commit 33424fd50e
+1
View File
@@ -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");