mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-22 22:45:27 +01:00
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:
parent
1cbdb9cc12
commit
86e49e0273
2 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue