Free intermediate buffers used by do-codec (CC #2068)
Merge branch 'fix-cc-2068' into community