lavfi/buffersink: fix possible leaks after allocation failures.

Should fix Coverity CID 1005313, 1005314, 1005315.