diff --git a/libraries/libstratosphere/include/stratosphere/fs/fs_memory_management.hpp b/libraries/libstratosphere/include/stratosphere/fs/fs_memory_management.hpp index c59068cb8..8bc884d19 100644 --- a/libraries/libstratosphere/include/stratosphere/fs/fs_memory_management.hpp +++ b/libraries/libstratosphere/include/stratosphere/fs/fs_memory_management.hpp @@ -97,9 +97,9 @@ namespace ams::fs { Impl::LockAllocatorMutex(); /* Check that we can allocate memory (using overestimate of 0x80 + sizeof(T)). */ - if (auto * const p = Impl::Allocate(0x80 + sizeof(T)); AMS_LIKELY(p != nullptr)) { + if (auto * const p = Impl::AllocateUnsafe(0x80 + sizeof(T)); AMS_LIKELY(p != nullptr)) { /* Free the memory we allocated. */ - Impl::Deallocate(p, 0x80 + sizeof(T)); + Impl::DeallocateUnsafe(p, 0x80 + sizeof(T)); /* Get allocator type. */ using AllocatorType = AllocatorTemplateT;