From 1bd40a8da62a152ffc2e38ad3abd4d9e215bde19 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Sat, 20 Jan 2018 15:08:30 +1030 Subject: [PATCH] lightning-cli: make valgrind happy by freeing opt table. Signed-off-by: Rusty Russell --- cli/lightning-cli.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cli/lightning-cli.c b/cli/lightning-cli.c index bcc006f45de6..da1b35d40423 100644 --- a/cli/lightning-cli.c +++ b/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; }