aboutsummaryrefslogtreecommitdiff
path: root/toys/pending/uudecode.c
diff options
context:
space:
mode:
Diffstat (limited to 'toys/pending/uudecode.c')
-rw-r--r--toys/pending/uudecode.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/toys/pending/uudecode.c b/toys/pending/uudecode.c
index 71774ea2..41d9acf3 100644
--- a/toys/pending/uudecode.c
+++ b/toys/pending/uudecode.c
@@ -171,4 +171,5 @@ void uudecode_main(void)
ofd = xcreate(out_filename,O_WRONLY|O_CREAT|O_TRUNC,mode);
free(line);
decoder(ifd,ofd);
+ if (TOYBOX_CLEANUP) close(ofd);
}