channeld: don't free msg in init.

It's allocated off tmpctx, and it's already freed if we loop in
peer_reconnect().

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2018-07-23 11:53:02 +09:30
committed by Christian Decker
parent 26deec0c82
commit 9dd0415a15

View File

@@ -2535,7 +2535,6 @@ static void init_channel(struct peer *peer)
channel_announcement_negotiate(peer);
billboard_update(peer);
tal_free(msg);
}
static void send_shutdown_complete(struct peer *peer)