Browse Source

options: plug leak (triggered by next test)

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
trytravis
Rusty Russell 6 years ago
parent
commit
6daa599c74
  1. 2
      lightningd/options.c

2
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); lines = tal_strsplit(contents, contents, "\r\n", STR_NO_EMPTY);
/* We have to keep all_args around, since opt will point into it */ /* 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++) { for (i = 0; i < tal_count(lines) - 1; i++) {
if (strstarts(lines[i], "#")) { if (strstarts(lines[i], "#")) {

Loading…
Cancel
Save