mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-21 22:31:48 +01:00
options: plug leak (triggered by next test)
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
56a3b3f3df
commit
6daa599c74
1 changed files with 1 additions and 1 deletions
|
@ -652,7 +652,7 @@ static void opt_parse_from_config(struct lightningd *ld, bool early)
|
|||
lines = tal_strsplit(contents, contents, "\r\n", STR_NO_EMPTY);
|
||||
|
||||
/* We have to keep all_args around, since opt will point into it */
|
||||
all_args = tal_arr(ld, char *, tal_count(lines) - 1);
|
||||
all_args = notleak(tal_arr(ld, char *, tal_count(lines) - 1));
|
||||
|
||||
for (i = 0; i < tal_count(lines) - 1; i++) {
|
||||
if (strstarts(lines[i], "#")) {
|
||||
|
|
Loading…
Add table
Reference in a new issue