code: private void releaseAllChannelResources() {
  		for (int i = 0; i < this.inputGates.size(); i++) {
  			this.inputGates.get(i).releaseAllChannelResources();
  		}
  
  		for (int i = 0; i < this.outputGates.size(); i++) {
  			this.outputGates.get(i).releaseAllChannelResources();
  		}
  	}
docs: Releases the allocated resources (particularly buffer) of input and output channels attached to this task. This
  method should only be called after the respected task has stopped running.