Does the local variable declared inside a function doesn't need UProperty macro for garbage collection?

Does the local variable declared inside a function doesn’t need UProperty macro for garbage collection? Because I haven’t seen people use UProperty macro on them, how does garbage collection handled for them , or do we need to manually need to free them from memory? Similarly what about functions ?

Local variable are allocated on the stack it’s a subpart of where your system allows your processus to manage his own memory, the stack are for locals variable as long as you stay under the “{}” where it had been define the variable is still alive.

When you leave the scope the system mark them as unneeded and the memory might be reused later.

when you create variable using new it s allocated on the heap and not managed by your system, care