Locations only leak if you do not destroy them.
-
Custom script: call RemoveLocation(udg_TempPoint)
The above removes location set to variable "TempPoint", preventing a memory leak.
Basically you will create location, do stuff with it and once you don't need it anymore, you remove it via the above custom script.
You can also check the following thread:
Things That Leak
It contains list of types of objects that cause leak and how you can destroy the objects in order to prevent memory leaks