Skip to content

Commit 4aa26ef

Browse files
committed
fixup! lightningd: Add tx_abort routine to lightningd
1 parent ce2255e commit 4aa26ef

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎common/wire_error.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ char *sanitize_error(const tal_t *ctx, const u8 *errmsg,
8484
struct channel_id dummy;
8585
u8 *data;
8686
size_t i;
87-
char *tag;
87+
const char *tag;
8888

8989
if (!channel_id)
9090
channel_id = &dummy;

‎lightningd/channel_control.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,7 @@ static void handle_splice_abort(struct lightningd *ld,
323323
&inflight->funding->outpoint));
324324

325325
wallet_inflight_del(ld->wallet, channel, inflight);
326+
tal_free(inflight);
326327
}
327328

328329
cc = splice_command_for_chan(ld, channel);
@@ -366,8 +367,7 @@ static void handle_splice_abort(struct lightningd *ld,
366367
&channel->cid)));
367368
subd_send_fd(ld->connectd, fds[1]);
368369
log_info(channel->log, "Sent the peer fd to channeld");
369-
}
370-
else {
370+
} else {
371371
log_info(channel->log, "peer_start_channeld failed");
372372
close(fds[1]);
373373
}

0 commit comments

Comments
 (0)