summaryrefslogtreecommitdiffhomepage
path: root/dev/kernel/src/FS/NeFS+FileSystemParser.cc
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-05-23 13:04:05 +0200
committerAmlal El Mahrouss <amlal@nekernel.org>2025-05-23 13:04:05 +0200
commit80f5f9dfdaaf68d9e63a7bc3ba1187ca447eadc9 (patch)
treeef3a145a8adefa8458e0982f7f437bb5d81fc83b /dev/kernel/src/FS/NeFS+FileSystemParser.cc
parent54a0f4c49d9bfb955174c87dae2f442d7f5a8b25 (diff)
refactor(kernel): Refactor HeapMgr functions.
what: - mm_new_ptr is now mm_alloc_ptr. - mm_delete_ptr is now mm_free_ptr. Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'dev/kernel/src/FS/NeFS+FileSystemParser.cc')
-rw-r--r--dev/kernel/src/FS/NeFS+FileSystemParser.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/dev/kernel/src/FS/NeFS+FileSystemParser.cc b/dev/kernel/src/FS/NeFS+FileSystemParser.cc
index bd6a1aee..f1746a58 100644
--- a/dev/kernel/src/FS/NeFS+FileSystemParser.cc
+++ b/dev/kernel/src/FS/NeFS+FileSystemParser.cc
@@ -240,7 +240,7 @@ _Output NEFS_CATALOG_STRUCT* NeFileSystemParser::CreateCatalog(_Input const Char
return nullptr;
}
- Char* parent_name = (Char*) mm_new_ptr(sizeof(Char) * rt_string_len(name), Yes, No);
+ Char* parent_name = (Char*) mm_alloc_ptr(sizeof(Char) * rt_string_len(name), Yes, No);
/// Locate parent catalog, to then allocate right after it.
@@ -269,7 +269,7 @@ _Output NEFS_CATALOG_STRUCT* NeFileSystemParser::CreateCatalog(_Input const Char
NEFS_CATALOG_STRUCT* catalog = this->FindCatalog(parent_name, out_lba);
- mm_delete_ptr(parent_name);
+ mm_free_ptr(parent_name);
auto& drive = kMountpoint.A();