Garbage collection of temporary variables, such as strings and BATs, takes place upon returning from a function call.