aboutsummaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/exec_elf64.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/kern/exec_elf64.c b/sys/kern/exec_elf64.c
index 8367ae5..4f441b2 100644
--- a/sys/kern/exec_elf64.c
+++ b/sys/kern/exec_elf64.c
@@ -232,6 +232,7 @@ elf64_load(const char *pathname, struct proc *td, struct exec_prog *prog)
/* Did program header loading fail? */
if (error != 0) {
elf_unload(td, prog);
+ dynfree(file.data);
return error;
}