Fixed memory leak in AMQPConsumerThread.