summary refs log tree commit diff
path: root/Src/Modules
diff options
context:
space:
mode:
Diffstat (limited to 'Src/Modules')
-rw-r--r--Src/Modules/zpty.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/Src/Modules/zpty.c b/Src/Modules/zpty.c
index d47beedeb..b469feb72 100644
--- a/Src/Modules/zpty.c
+++ b/Src/Modules/zpty.c
@@ -279,7 +279,6 @@ newptycmd(char *nam, char *pname, char **args, int echo, int block)
     }
     if ((pid = fork()) == -1) {
 	close(master);
-	close(slave);
 	zwarnnam(nam, "couldn't create pty command: %s", pname, 0);
 	return 1;
     } else if (!pid) {