Avoid nasty memory leak by clearing out channel_data after it's used