Queues leak memory