nh13/samtools — pull request #3 by smjs (2013-10-18 10:37:09+00:00)
Title: Fix for small memory leak in the consumer code

Hi Nils
This is the fix I mailed you about a while ago. I've only just got round to committing it - sorry about that.

When the consumer is processing blocks it takes them off the queue. If at that instant the consumer's input or output queues go into QUEUE_STATE_EOF the block is not in the queue so won't get freed by queue_destroy, so needs to be freed in the consumer. It's two one line additions (block_destroy calls) in consumer_run.

Steve