How can i check memory leak in 4.18?

Add CORE_API macro to Engine\Source\Runtime\Core\Private\HAL\MallocLeakDetection.h like this:

class CORE_API FMallocLeakDetection