lightningd: remove some unnneded notleak().

We now reach into the uintmap, so this is unnecesary.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2021-11-24 14:36:05 +10:30
parent 1cbdb9cc12
commit 86e49e0273
2 changed files with 3 additions and 3 deletions

View File

@ -405,8 +405,7 @@ void bitcoind_getrawblockbyheight_(struct bitcoind *bitcoind,
req = jsonrpc_request_start(bitcoind, "getrawblockbyheight",
bitcoind->log,
NULL, getrawblockbyheight_callback,
/* Freed in cb. */
notleak(call));
call);
json_add_num(req->stream, "height", height);
jsonrpc_request_end(req);
bitcoin_plugin_send(bitcoind, req);

View File

@ -992,7 +992,8 @@ struct command_result *cancel_channel_before_broadcast(struct command *cmd,
bitcoind_getutxout(cmd->ld->topology->bitcoind,
&cancel_channel->funding,
process_check_funding_broadcast,
notleak(tal_steal(NULL, cc)));
/* Freed by callback */
tal_steal(NULL, cc));
return command_still_pending(cmd);
}