aboutsummaryrefslogtreecommitdiff
path: root/networking/wget.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/wget.c')
-rw-r--r--networking/wget.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/networking/wget.c b/networking/wget.c
index 6c9a51211..ad2bfa4b5 100644
--- a/networking/wget.c
+++ b/networking/wget.c
@@ -941,5 +941,8 @@ int wget_main(int argc UNUSED_PARAM, char **argv)
while (*argv)
exitcode |= download_one_url(*argv++);
+ if (G.output_fd >= 0)
+ xclose(G.output_fd);
+
return exitcode;
}