fix (proc): destructing process executable, when process is killed

This commit is contained in:
antifallobst 2023-03-04 18:10:01 +01:00
parent 1e38299857
commit e5e988ccf7
1 changed files with 1 additions and 0 deletions

View File

@ -66,6 +66,7 @@ void process_kill_pid(pid_t pid) {
void process_kill(process_T* process) { void process_kill(process_T* process) {
scheduler_kill_process(process); scheduler_kill_process(process);
elf_executable_destruct(process->executable);
page_map_destruct(process->page_map); page_map_destruct(process->page_map);
memory_free(process); memory_free(process);