mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-01 17:47:30 +01:00
df: free psbt on negotiation failed
This commit is contained in:
parent
2cd95aa806
commit
5387f6736c
1 changed files with 3 additions and 0 deletions
|
@ -277,6 +277,8 @@ static void negotiation_aborted(struct state *state, const char *why)
|
|||
memset(&state->channel_id, 0, sizeof(state->channel_id));
|
||||
state->channel = tal_free(state->channel);
|
||||
state->changeset = tal_free(state->changeset);
|
||||
if (state->psbt)
|
||||
tal_free(state->psbt);
|
||||
|
||||
for (size_t i = 0; i < NUM_TX_MSGS; i++)
|
||||
state->tx_msg_count[i] = 0;
|
||||
|
@ -2710,6 +2712,7 @@ int main(int argc, char *argv[])
|
|||
/*~ This makes status_failed, status_debug etc work synchronously by
|
||||
* writing to REQ_FD */
|
||||
status_setup_sync(REQ_FD);
|
||||
state->psbt = NULL;
|
||||
|
||||
/*~ The very first thing we read from lightningd is our init msg */
|
||||
msg = wire_sync_read(tmpctx, REQ_FD);
|
||||
|
|
Loading…
Add table
Reference in a new issue