mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-05 23:24:21 +01:00
gossipd: minor modifications for memleak detection to work.
1. Move the list to the start of `struct peer`: memleak walks the list correctly this way. 2. Don't create tal parent loop daemon->conn->daemon. The second one is silly anyway: we exit via master_gone when the master conn is closed. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
a2828ed40b
commit
2db77f5d1d
@@ -48,10 +48,6 @@ void command_fail_detailed(struct command *cmd, int code,
|
||||
/* Generated stub for fmt_wireaddr_without_port */
|
||||
char *fmt_wireaddr_without_port(const tal_t *ctx UNNEEDED, const struct wireaddr *a UNNEEDED)
|
||||
{ fprintf(stderr, "fmt_wireaddr_without_port called!\n"); abort(); }
|
||||
/* Generated stub for json_tok_wtx */
|
||||
bool json_tok_wtx(struct wallet_tx * tx UNNEEDED, const char * buffer UNNEEDED,
|
||||
const jsmntok_t * sattok UNNEEDED, u64 max UNNEEDED)
|
||||
{ fprintf(stderr, "json_tok_wtx called!\n"); abort(); }
|
||||
/* AUTOGENERATED MOCKS END */
|
||||
|
||||
struct json {
|
||||
|
||||
Reference in New Issue
Block a user