note: see reference to class template instantiation 'TArray' being compiled

Ok I get it, I think I misunderstood your post.
The local variable array is created by C++'s mechanism, not allocated by Unreal, of course.