aboutsummaryrefslogtreecommitdiff
path: root/lib/libutil/pty.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libutil/pty.c')
-rw-r--r--lib/libutil/pty.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/libutil/pty.c b/lib/libutil/pty.c
index 8eb2c2965759..28252af57abf 100644
--- a/lib/libutil/pty.c
+++ b/lib/libutil/pty.c
@@ -29,9 +29,6 @@
* SUCH DAMAGE.
*/
-#include <sys/cdefs.h>
-__FBSDID("$FreeBSD$");
-__SCCSID("@(#)pty.c 8.3 (Berkeley) 5/16/94");
#include <sys/types.h>
#include <sys/ioctl.h>
@@ -96,6 +93,7 @@ forkpty(int *amaster, char *name, struct termios *termp, struct winsize *winp)
return (-1);
switch (pid = fork()) {
case -1:
+ (void)close(master);
(void)close(slave);
return (-1);
case 0: