We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
in kernel/proc.c freeproc() function :
kfree((void*)p->trapframe); // first proc_freepagetable(p->pagetable, p->sz); uvmunmap(pagetable, TRAPFRAME, 1, 0); kfree((void*)pa); // second
kfree will not give up this duplicated page, and this could lead to some problems. I delete the first kfree above and the code works well.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
in kernel/proc.c freeproc() function :
kfree will not give up this duplicated page, and this could lead to some problems. I delete the first kfree above and the code works well.
The text was updated successfully, but these errors were encountered: