Free intermediate buffers used by do-codec (CC #2068)
Merge pull request #156 from hostilefork/fix-cc-2068

Free intermediate buffers used by do-codec (CC #2068)