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

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2018-01-20 15:08:30 +10:30 committed by Christian Decker
parent aa34ad30d9
commit 1bd40a8da6

View File

@ -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;
}