PeachOS icon indicating copy to clipboard operation
PeachOS copied to clipboard

Memory leak process.c

Open JaihsonK opened this issue 3 years ago • 1 comments

process_load_for_slot kzallocs a new struct process, but never kfrees it. Possible solution: process_unlink(): processes[process->id] = 0; kfree(process); if (current_process == process) { process_switch_to_any(); }

JaihsonK avatar Nov 01 '22 00:11 JaihsonK

Thank you for this, once enough issues are identified I will be making another lecture where we fix them all

nibblebits avatar Dec 07 '22 12:12 nibblebits