From 02e4278156d4f70604f8464947cfce3d57f4c551 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Sat, 29 Jun 2024 00:13:01 -0400 Subject: kernel: elf: Fix memory leak Signed-off-by: Ian Moffett --- sys/kern/exec_elf64.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sys') 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; } -- cgit v1.2.3