I think lua is based on C so you won't need stuff like garbage collections, that's more of a java feature, all variables in lua are pointers which you can set to nil to free some space in your memory, also in general MTA servers doesn't seem to consume much RAM at all so no need to worry about "garbage".