Code/Legacy/CryCommon/LegacyAllocator.cpp
void LegacyAllocator::DeAllocate(pointer_type ptr, [[maybe_unused]] const char* file, [[maybe_unused]] const int line, size_type byteSize, size_type alignment)
    {
        AZ_PROFILE_MEMORY_FREE_EX(MemoryReserved, file, line, ptr);
        AZ_MEMORY_PROFILE(ProfileDeallocation(ptr, byteSize, alignment, nullptr));
        m_schema->DeAllocate(ptr, byteSize, alignment);
    }
// DeAllocate with file/line, to track when allocs were freed from Cry
DeAllocate with file/line, to track when allocs were freed from Cry
DeAllocate with file / line to track when allocs were freed from Cry
void LegacyAllocator::DeAllocate(pointer_type ptr, [[maybe_unused]] const char* file, [[maybe_unused]] const int line, size_type byteSize, size_type alignment)
    {
        AZ_PROFILE_MEMORY_FREE_EX(MemoryReserved, file, line, ptr);
        AZ_MEMORY_PROFILE(ProfileDeallocation(ptr, byteSize, alignment, nullptr));
        m_schema->DeAllocate(ptr, byteSize, alignment);
    }
void LegacyAllocator :: DeAllocate ( pointer_type ptr , [[ maybe_unused ]] const char * file , [[ maybe_unused ]] const int line , size_type byteSize , size_type alignment ) { AZ_PROFILE_MEMORY_FREE_EX ( MemoryReserved , file , line , ptr ) ; AZ_MEMORY_PROFILE ( ProfileDeallocation ( ptr , byteSize , alignment , nullptr ) ) ; m_schema -> DeAllocate ( ptr , byteSize , alignment ) ; }
DeAllocate with file/line, to track when allocs were freed from Cry
DeAllocate with file / line to track when allocs were freed from Cry