Fixed a queue leak