aboutsummaryrefslogtreecommitdiff
path: root/src/grab.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/grab.c')
-rw-r--r--src/grab.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/grab.c b/src/grab.c
index 96b5d9f..7b7a16c 100644
--- a/src/grab.c
+++ b/src/grab.c
@@ -447,6 +447,7 @@ getfstream(int argc, char *argv[argc])
close(fds[FD_R]);
if (dup2(fds[FD_W], STDOUT_FILENO) == -1)
die("dup2");
+ close(fds[FD_W]);
if (!(args = malloc(len * sizeof(char *))))
die("malloc");