mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 21:35:11 +01:00
lightning-cli: make valgrind happy by freeing opt table.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
aa34ad30d9
commit
1bd40a8da6
@ -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…
Reference in New Issue
Block a user