Fix memory leak on add channel