mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 21:35:11 +01:00
connectd: free proxyaddr after use.
Otherwise the next patch gives: MEMLEAK: 0x895b3ac label=connectd/gen_connect_wire.c:65:struct wireaddr backtrace: ccan/ccan/tal/tal.c:435 (tal_alloc_) connectd/gen_connect_wire.c:65 (fromwire_connectctl_init) connectd/connectd.c:1103 (connect_init) connectd/connectd.c:1414 (recv_req) common/daemon_conn.c:31 (handle_read) ccan/ccan/io/io.c:59 (next_plan) ccan/ccan/io/io.c:395 (do_plan) ccan/ccan/io/io.c:405 (io_ready) ccan/ccan/io/poll.c:310 (io_loop) connectd/connectd.c:1499 (main) parents: connectd/connectd.c:1485:struct daemon Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
b522b35e01
commit
a1c675edb3
@ -1111,6 +1111,7 @@ static struct io_plan *connect_init(struct io_conn *conn,
|
||||
status_trace("Proxy address: %s",
|
||||
fmt_wireaddr(tmpctx, proxyaddr));
|
||||
daemon->proxyaddr = wireaddr_to_addrinfo(daemon, proxyaddr);
|
||||
tal_free(proxyaddr);
|
||||
} else
|
||||
daemon->proxyaddr = NULL;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user