diff --git a/Kernel/Syscalls/purge.cpp b/Kernel/Syscalls/purge.cpp index 0d6991a1f1..582fb4c016 100644 --- a/Kernel/Syscalls/purge.cpp +++ b/Kernel/Syscalls/purge.cpp @@ -43,7 +43,8 @@ int Process::sys$purge(int mode) { InterruptDisabler disabler; MM.for_each_vmobject([&](auto& vmobject) { - vmobjects.append(vmobject); + if (vmobject.is_anonymous()) + vmobjects.append(vmobject); return IterationDecision::Continue; }); }