mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 07:04:22 +01:00
df-tests: make memleak happy by cleaning up psbt
We don't need it anymore. Normally it gets cleaned up by `cmd` but we're done with it here.
This commit is contained in:
committed by
Christian Decker
parent
09da171381
commit
fa539d3281
@@ -1611,6 +1611,9 @@ json_openchannel_signed(struct command *cmd,
|
||||
return command_fail(cmd, FUNDING_PSBT_INVALID,
|
||||
"Failed adding sigs");
|
||||
}
|
||||
|
||||
/* Make memleak happy, (otherwise cleaned up with `cmd`) */
|
||||
tal_free(psbt);
|
||||
tal_wally_end(tal_steal(channel, channel->psbt));
|
||||
|
||||
wallet_channel_save(cmd->ld->wallet, channel);
|
||||
|
||||
Reference in New Issue
Block a user