mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-03 18:57:06 +01:00
lightningd/peer_control.c: fix memleak.
Reported-by: Christian Decker Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
5edc14ee1a
commit
99289bece7
1 changed files with 2 additions and 0 deletions
|
@ -1134,6 +1134,7 @@ static bool peer_start_channeld(struct peer *peer,
|
||||||
log_unusual(peer->log, "Could not subdaemon channel: %s",
|
log_unusual(peer->log, "Could not subdaemon channel: %s",
|
||||||
strerror(errno));
|
strerror(errno));
|
||||||
peer_fail_transient(peer, "Failed to subdaemon channel");
|
peer_fail_transient(peer, "Failed to subdaemon channel");
|
||||||
|
tal_free(tmpctx);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1199,6 +1200,7 @@ static bool peer_start_channeld(struct peer *peer,
|
||||||
/* We don't expect a response: we are triggered by funding_depth_cb. */
|
/* We don't expect a response: we are triggered by funding_depth_cb. */
|
||||||
subd_send_msg(peer->owner, take(initmsg));
|
subd_send_msg(peer->owner, take(initmsg));
|
||||||
|
|
||||||
|
tal_free(tmpctx);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue