Skip to content

Commit

Permalink
lightning-cli: make valgrind happy by freeing opt table.
Browse files Browse the repository at this point in the history
Signed-off-by: Rusty Russell <[email protected]>
  • Loading branch information
rustyrussell authored and cdecker committed Jan 22, 2018
1 parent aa34ad3 commit 1bd40a8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cli/lightning-cli.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 1bd40a8

Please sign in to comment.