From 6daa599c7422ca682a3997dbf38efb347eb2b57b Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Tue, 20 Nov 2018 15:54:01 +1030 Subject: [PATCH] options: plug leak (triggered by next test) Signed-off-by: Rusty Russell --- lightningd/options.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lightningd/options.c b/lightningd/options.c index f2fb56136..b9afcf6ae 100644 --- a/lightningd/options.c +++ b/lightningd/options.c @@ -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], "#")) {