Rusty Russell
f4f6e451b1
lightningd: fix leak report when close called multiple times.
```
Global errors:
- Node /tmp/ltests-odpd7qtt/test_close_twice_1/lightning-1/ has memory leaks: [
{
"backtrace": [
"ccan/ccan/tal/tal.c:442 (tal_alloc_)",
"ccan/ccan/tal/tal.c:471 (tal_alloc_arr_)",
"lightningd/peer_control.c:1673 (param_feerate_range)",
"common/param.c:43 (make_callback)",
"common/param.c:140 (parse_by_name)",
"common/param.c:259 (param_arr)",
"common/param.c:344 (param)",
"lightningd/peer_control.c:1706 (json_close)",
"lightningd/jsonrpc.c:643 (command_exec)",
"lightningd/jsonrpc.c:778 (rpc_command_hook_final)",
"lightningd/plugin_hook.c:280 (plugin_hook_call_)",
"lightningd/jsonrpc.c:866 (plugin_hook_call_rpc_command)",
"lightningd/jsonrpc.c:965 (parse_request)",
"lightningd/jsonrpc.c:1056 (read_json)",
"ccan/ccan/io/io.c:59 (next_plan)",
"ccan/ccan/io/io.c:407 (do_plan)",
"ccan/ccan/io/io.c:417 (io_ready)",
"ccan/ccan/io/poll.c:445 (io_loop)",
"lightningd/io_loop_with_timers.c:24 (io_loop_with_timers)",
"lightningd/lightningd.c:1123 (main)"
],
"label": "lightningd/peer_control.c:1673:u32[]",
"parents": [
"lightningd/channel.c:372:struct channel"
],
"value": "0x56428b886208"
}
]
```
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2021-09-15 18:23:30 +02:00
..
2021-09-13 15:53:23 +02:00
2020-09-09 19:54:20 +09:30
2021-07-09 07:26:09 +09:30
2021-09-05 15:16:56 +02:00
2021-09-08 19:11:47 +02:00
2021-09-08 19:11:47 +02:00
2021-09-13 15:53:23 +02:00
2021-06-25 13:23:28 +09:30
2021-01-10 13:44:04 +01:00
2021-09-13 15:53:23 +02:00
2021-09-13 15:53:23 +02:00
2021-09-13 15:53:23 +02:00
2021-06-25 13:23:28 +09:30
2020-09-09 19:54:20 +09:30
2020-05-12 15:46:58 +09:30
2021-08-23 14:43:40 +09:30
2021-03-26 13:22:33 +10:30
2021-08-25 10:06:31 +02:00
2021-09-05 14:24:14 +02:00
2021-06-03 16:16:34 +09:30
2021-07-20 13:28:38 -04:00
2019-09-25 04:01:56 +00:00
2021-07-20 13:28:38 -04:00
2021-07-20 13:28:38 -04:00
2021-01-06 13:50:01 +01:00
2020-06-11 13:13:13 +02:00
2021-06-05 17:47:32 +09:30
2021-06-26 10:55:13 +09:30
2021-07-14 14:38:00 -05:00
2020-09-08 09:42:00 +09:30
2021-09-09 12:04:48 +09:30
2020-09-08 09:42:00 +09:30
2019-07-24 16:16:53 +02:00
2019-05-31 17:57:10 +02:00
2021-05-22 17:53:04 +09:30
2020-08-11 08:39:24 +09:30
2021-08-30 12:10:37 +09:30
2020-10-23 13:53:16 +10:30
2021-09-09 12:04:48 +09:30
2021-09-09 12:04:48 +09:30
2020-08-25 12:53:13 +09:30
2019-11-18 04:50:22 +00:00
2021-05-05 17:19:19 -05:00
2019-11-18 04:50:22 +00:00
2021-09-13 15:53:23 +02:00
2021-09-08 19:11:47 +02:00
2021-09-08 19:11:47 +02:00
2021-09-10 07:10:05 +09:30
2021-09-05 15:16:56 +02:00
2021-07-21 13:27:27 -04:00
2021-09-13 15:53:23 +02:00
2020-08-25 12:53:13 +09:30
2021-07-21 13:27:27 -04:00
2021-01-09 14:34:35 +10:30
2021-08-05 12:53:38 -05:00
2021-09-13 15:53:23 +02:00
2021-09-13 15:53:23 +02:00
2021-06-03 16:16:34 +09:30
2021-09-13 15:53:23 +02:00
2019-11-23 22:42:34 +00:00
2021-06-16 10:29:17 +09:30
2020-05-04 18:56:33 +09:30
2021-09-15 18:23:30 +02:00
2021-07-14 14:39:44 -05:00
2021-09-13 15:53:23 +02:00
2020-09-23 15:51:13 +09:30
2020-08-25 12:53:13 +09:30
2018-09-14 22:11:23 +02:00
2021-09-05 15:16:56 +02:00
2021-06-25 09:49:33 +09:30
2021-06-05 17:47:32 +09:30
2021-06-05 17:47:32 +09:30
2021-09-05 15:16:56 +02:00
2021-09-05 15:16:56 +02:00
2021-06-16 10:29:17 +09:30
2021-06-16 10:29:17 +09:30
2021-06-16 10:29:17 +09:30
2021-04-24 13:56:58 +09:30
2021-04-24 13:56:58 +09:30
2020-01-02 16:56:42 +01:00
2019-06-28 03:31:43 +00:00