From e5e988ccf79afb1caf74db68a28e7f4d02214aa1 Mon Sep 17 00:00:00 2001 From: antifallobst Date: Sat, 4 Mar 2023 18:10:01 +0100 Subject: [PATCH] fix (proc): destructing process executable, when process is killed --- kernel/src/proc/process.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/src/proc/process.c b/kernel/src/proc/process.c index 0ab583b..04403ee 100644 --- a/kernel/src/proc/process.c +++ b/kernel/src/proc/process.c @@ -66,6 +66,7 @@ void process_kill_pid(pid_t pid) { void process_kill(process_T* process) { scheduler_kill_process(process); + elf_executable_destruct(process->executable); page_map_destruct(process->page_map); memory_free(process);