# HG changeset patch # User Matt Johnston # Date 1406341135 -28800 # Node ID 2e402a09e21ea1181cd7dec7065c2821e47dabf4 # Parent 8664fea5072f7ddc7a825072c2e1543b18ed1963 Avoid use-after-free when channel inithandler fails. Thanks to Coverity diff -r 8664fea5072f -r 2e402a09e21e common-channel.c --- a/common-channel.c Fri Jul 25 22:22:39 2014 +0800 +++ b/common-channel.c Sat Jul 26 10:18:55 2014 +0800 @@ -1089,6 +1089,7 @@ if (ret > 0) { remove_channel(channel); TRACE(("inithandler returned failure %d", ret)) + return; } }