aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/kern_exec.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/kern_exec.c')
-rw-r--r--sys/kern/kern_exec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c
index b5b4cd2..1c91025 100644
--- a/sys/kern/kern_exec.c
+++ b/sys/kern/kern_exec.c
@@ -205,6 +205,7 @@ execv(char *pathname, char **argv, uintptr_t *sp_res)
set_frame_ip(td->tf, args.auxv.at_entry);
done:
/* We are done, free argp and release the thread */
+ fd_close_fdnum(td, fd);
spinlock_release(&td->lock);
dynfree(args.argp);
return ret;