This article explores the principles of allocating and freeing memory in PFS based on the source code of the memory management model.