a = createObj() if a == nil then print("a is nil") end a = nil collectgarbage() print(1)