core-lightning/lightningd
Rusty Russell ca2f72fd5f log: block reporting on minor memleak.
Exception: Node /tmp/lightning-t5gxc6gs/test_closing_different_fees/lightning-2/ has memory leaks: [{'value': '0x55caa0a0b8d0', 'label': 'ccan/ccan/tal/str/str.c:90:char[]', 'backtrace': ['ccan/ccan/tal/tal.c:467 (tal_alloc_)', 'ccan/ccan/tal/tal.c:496 (tal_alloc_arr_)', 'ccan/ccan/tal/str/str.c:90 (tal_vfmt)', 'lightningd/log.c:131 (new_log)', 'lightningd/subd.c:632 (new_subd)', 'lightningd/subd.c:686 (new_peer_subd)', 'lightningd/peer_control.c:2487 (peer_accept_channel)', 'lightningd/peer_control.c:674 (peer_sent_nongossip)', 'lightningd/gossip_control.c:55 (peer_nongossip)', 'lightningd/gossip_control.c:142 (gossip_msg)', 'lightningd/subd.c:477 (sd_msg_read)', 'lightningd/subd.c:319 (read_fds)', 'ccan/ccan/io/io.c:59 (next_plan)', 'ccan/ccan/io/io.c:387 (do_plan)', 'ccan/ccan/io/io.c:397 (io_ready)', 'ccan/ccan/io/poll.c:305 (io_loop)', 'lightningd/lightningd.c:347 (main)', '(null):0 ((null))', '(null):0 ((null))', '(null):0 ((null))'], 'parents': ['lightningd/log.c:103:struct log_book', 'lightningd/lightningd.c:43:struct lightningd']}]

Technically, true, but we save more memory by sharing the prefix pointer
than we lose by leaking it.

However, we'd ideally refcount so it's freed if the log is freed and
all the entries using it are pruned from the log book.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2018-01-30 19:47:27 +00:00
..
test invoices: Extensive reorganization of invoice system. 2018-01-16 13:03:54 +01:00
.gitignore handshaked: remove. 2017-10-20 18:31:32 +02:00
bitcoind.c bitcoind: mark request no longer running, even if it fails. 2018-01-30 15:19:45 +01:00
bitcoind.h bitcoind: getoutput so we can check short_channel_ids. 2018-01-11 23:13:23 +01:00
build_utxos.c wallet: Use newindex primitive to generate change key index 2018-01-08 17:19:25 +01:00
build_utxos.h build_utxos: fix weight calculation, and make more accurate. 2017-12-20 12:56:15 +01:00
chaintopology.c Spelling corrections (#824) 2018-01-29 04:46:54 +00:00
chaintopology.h update references to sat/kb to sat/kw 2018-01-30 08:11:51 +00:00
dev_ping.c Start all command descriptions with a verb ("Show", "Set", etc.). Remove unused help texts. 2018-01-23 13:32:44 +01:00
gossip_control.c gossip: Implement connection failed handler in lightningd 2018-01-29 06:01:56 +00:00
gossip_control.h gossipd: rewrite to do the handshake internally. 2017-10-20 18:31:32 +02:00
gossip_msg.c JSONRPC listnodes: return timestamp, alias and color. 2018-01-19 22:23:45 +00:00
gossip_msg.h JSONRPC listnodes: return timestamp, alias and color. 2018-01-19 22:23:45 +00:00
hsm_control.c hsm: Cleanup after merging control and client libraries 2017-12-03 17:06:13 +01:00
hsm_control.h lightningd/hsm_control: use a simple fd for HSM. 2017-06-27 10:25:53 +09:30
htlc_end.c htlc_end: allow htlc_out to have 0 msatoshi. 2018-01-24 19:34:46 +01:00
htlc_end.h wallet: abstract away delayed entry of wallet_payment. 2018-01-17 23:55:35 +01:00
invoice.c Start all command descriptions with a verb ("Show", "Set", etc.). Remove unused help texts. 2018-01-23 13:32:44 +01:00
invoice.h invoices: Extensive reorganization of invoice system. 2018-01-16 13:03:54 +01:00
jsonrpc.c jsonrpc: Report standard JSON-RPC 2.0 error codes. 2018-01-27 14:32:06 +01:00
jsonrpc.h jsonrpc: Implement command_fail_detailed. 2018-01-27 14:32:06 +01:00
lightningd.c Onboarding: Make log output texts friendlier to new users 2018-01-29 03:22:27 +00:00
lightningd.h pay: remove struct pay_command. 2018-01-17 23:55:35 +01:00
log.c log: block reporting on minor memleak. 2018-01-30 19:47:27 +00:00
log.h memleak: add backtrace to allocations. 2017-12-20 12:43:10 +01:00
Makefile features: Move feature-handling code to a common/features.c source. 2018-01-13 11:29:42 +01:00
memdump.c Start all command descriptions with a verb ("Show", "Set", etc.). Remove unused help texts. 2018-01-23 13:32:44 +01:00
netaddress.c wireaddr: add ip[:port] parsing 2017-12-21 09:56:20 +00:00
netaddress.h wireaddr: add ip[:port] parsing 2017-12-21 09:56:20 +00:00
opt_time.c common: absorb remaining files from daemon/ 2017-08-29 17:54:14 +02:00
opt_time.h headers: fix up header idempotent lines. 2017-08-29 17:54:14 +02:00
options.c update references to sat/kb to sat/kw 2018-01-30 08:11:51 +00:00
options.h lightningd: --deprecated-api option to turn off deprecated APIs. 2018-01-19 22:23:45 +00:00
pay.c Start all command descriptions with a verb ("Show", "Set", etc.). Remove unused help texts. 2018-01-23 13:32:44 +01:00
pay.h lightningd: unify pay vs forward path when handling failures. 2017-06-23 09:29:42 +09:30
peer_control.c subd: use peer log for messages (if any). 2018-01-30 19:47:27 +00:00
peer_control.h gossip: Implement connection failed handler in lightningd 2018-01-29 06:01:56 +00:00
peer_htlcs.c lightningd: check channeld isn't trying to add 0-satoshi incoming HTLCs. 2018-01-24 19:34:46 +01:00
peer_htlcs.h wallet: abstract away delayed entry of wallet_payment. 2018-01-17 23:55:35 +01:00
peer_state.h gossipd: rewrite to do the handshake internally. 2017-10-20 18:31:32 +02:00
subd.c subd: use peer log for messages (if any). 2018-01-30 19:47:27 +00:00
subd.h subd: wrap all message callbacks in a transaction. 2017-11-06 10:24:34 +01:00
txfilter.c txfilter: Expose the txfilter_add_scriptpubkey function 2018-01-08 17:19:25 +01:00
txfilter.h txfilter: Expose the txfilter_add_scriptpubkey function 2018-01-08 17:19:25 +01:00
watch.c bitcoin: create new wrapper type bitcoin_txid, log backward endianness. 2017-12-21 11:05:38 +00:00
watch.h bitcoin: create new wrapper type bitcoin_txid, log backward endianness. 2017-12-21 11:05:38 +00:00