Avoid use-after-free when channel inithandler fails. Thanks to Coverity
merge

--HG--
branch : coverity