mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-23 00:54:20 +01:00
peer_control: fix memleak in dev-disconnect.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
ee939c8dcb
commit
05a3db886b
@@ -257,6 +257,7 @@ void peer_fail_transient(struct peer *peer, const char *fmt, ...)
|
||||
|
||||
#if DEVELOPER
|
||||
if (dev_disconnect_permanent(peer->ld)) {
|
||||
tal_free(why);
|
||||
peer_internal_error(peer, "dev_disconnect permfail");
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user