Browse Source
json_listconfigs() returns in the middle; the name0 is not always freed. It will be freed later with the response, but our memleak detection doesn't know that, and Travis caught it: Global errors: E - Node /tmp/ltests-5mfrzh5v/test_hsmtool_secret_decryption_1/lightning-1/ has memory leaks: [ E { E "backtrace": [ E "ccan/ccan/tal/tal.c:437 (tal_alloc_)", E "ccan/ccan/tal/tal.c:466 (tal_alloc_arr_)", E "ccan/ccan/tal/tal.c:794 (tal_dup_)", E "ccan/ccan/tal/str/str.c:32 (tal_strndup_)", E "lightningd/options.c:1122 (add_config)", E "lightningd/options.c:1282 (json_listconfigs)", E "lightningd/jsonrpc.c:588 (command_exec)", E "lightningd/jsonrpc.c:679 (rpc_command_hook_callback)", E "lightningd/plugin_hook.c:123 (plugin_hook_call_)", E "lightningd/jsonrpc.c:729 (plugin_hook_call_rpc_command)", E "lightningd/jsonrpc.c:736 (call_rpc_command_hook)", E "common/timeout.c:39 (timer_expired)", E "lightningd/io_loop_with_timers.c:32 (io_loop_with_timers)", E "lightningd/lightningd.c:871 (main)" E ], E "label": "lightningd/options.c:1122:char[]", E "parents": [ E "lightningd/json_stream.c:49:struct json_stream", E "ccan/ccan/io/io.c:91:struct io_conn", E "lightningd/lightningd.c:104:struct lightningd" E ], E "value": "0x5569ada057a8" E } E ] Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>travis-debug
Rusty Russell
5 years ago
committed by
Christian Decker
1 changed files with 1 additions and 2 deletions
Loading…
Reference in new issue