[FLINK-980] Fix buffer leak in OutputChannel