mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 07:04:22 +01:00
libplugin-pay: fix spurious leak reports.
1. The dijkstra can be temporary, doesn't need to last as long as pay cmd. 2. We fail multiple times in several places, so don't leak old failreason. 3. Make payments findable by our memleak detector. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -160,11 +160,12 @@ struct payment_constraints {
|
||||
};
|
||||
|
||||
struct payment {
|
||||
/* Usually in global payments list */
|
||||
struct list_node list;
|
||||
/* The command that triggered this payment. Only set for the root
|
||||
* payment. */
|
||||
struct command *cmd;
|
||||
struct plugin *plugin;
|
||||
struct list_node list;
|
||||
struct node_id *local_id;
|
||||
|
||||
const char *json_buffer;
|
||||
|
||||
Reference in New Issue
Block a user