We have to run through the clear buffer function even for empty buffers or corrupt archives with empty match streams.