mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-07 16:14:26 +01:00
options: plug leak (triggered by next test)
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -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], "#")) {
|
||||
|
||||
Reference in New Issue
Block a user