Browse Source

lightning-cli: make valgrind happy by freeing opt table.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ppa-0.6.1
Rusty Russell 7 years ago
committed by Christian Decker
parent
commit
1bd40a8da6
  1. 2
      cli/lightning-cli.c

2
cli/lightning-cli.c

@ -176,11 +176,13 @@ int main(int argc, char *argv[])
json_tok_len(result),
json_tok_contents(resp, result));
tal_free(ctx);
opt_free_table();
return 0;
}
printf("%.*s\n",
json_tok_len(error), json_tok_contents(resp, error));
tal_free(ctx);
opt_free_table();
return 1;
}

Loading…
Cancel
Save