mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-15 11:59:16 +01:00
pay: fix leak detect on shadow route.
Short term leak, but leak-detect is right: it's dumb code! Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> ``` plugin-pay: MEMLEAK: 0x2505318 plugin-pay: label=common/utils.c:134:char[] plugin-pay: backtrace: plugin-pay: ccan/ccan/tal/tal.c:442 (tal_alloc_) plugin-pay: ccan/ccan/tal/tal.c:471 (tal_alloc_arr_) plugin-pay: common/utils.c:134 (tal_hexstr) plugin-pay: common/node_id.c:48 (node_id_to_hexstr) plugin-pay: common/node_id.c:50 (fmt_node_id_) plugin-pay: common/type_to_string.c:32 (type_to_string_) plugin-pay: plugins/libplugin-pay.c:2970 (shadow_route_extend) plugin-pay: plugins/libplugin-pay.c:3113 (shadow_route_listchannels) plugin-pay: plugins/libplugin.c:563 (handle_rpc_reply) plugin-pay: plugins/libplugin.c:731 (rpc_read_response_one) plugin-pay: plugins/libplugin.c:751 (rpc_conn_read_response) plugin-pay: ccan/ccan/io/io.c:59 (next_plan) plugin-pay: ccan/ccan/io/io.c:407 (do_plan) plugin-pay: ccan/ccan/io/io.c:417 (io_ready) plugin-pay: ccan/ccan/io/poll.c:453 (io_loop) plugin-pay: plugins/libplugin.c:1565 (plugin_main) plugin-pay: plugins/pay.c:2569 (main) plugin-pay: parents: plugin-pay: plugins/libplugin.c:155:struct out_req ```
This commit is contained in:
parent
5704653d4c
commit
dbc77bcbc4
1 changed files with 1 additions and 2 deletions
|
@ -2966,8 +2966,7 @@ static struct command_result *shadow_route_extend(struct shadow_route_data *d,
|
|||
req = jsonrpc_request_start(p->plugin, NULL, "listchannels",
|
||||
shadow_route_listchannels,
|
||||
payment_rpc_failure, p);
|
||||
json_add_string(req->js, "source",
|
||||
type_to_string(req, struct node_id, &d->destination));
|
||||
json_add_node_id(req->js, "source", &d->destination);
|
||||
return send_outreq(p->plugin, req);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue