It seems like the one that actually leaks a handle is the "GetUnitsInRangeofLocMatching" (leaks the g handle), and "GetUnitsInRangeOfLocAll" is safe. http://jass.sourceforge.net/doc/api/Blizzard_j-source.shtml#4311 . Is that right or am I missing something? :S