mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 07:04:22 +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:
committed by
Christian Decker
parent
aa34ad30d9
commit
1bd40a8da6
@@ -176,11 +176,13 @@ int main(int argc, char *argv[])
|
|||||||
json_tok_len(result),
|
json_tok_len(result),
|
||||||
json_tok_contents(resp, result));
|
json_tok_contents(resp, result));
|
||||||
tal_free(ctx);
|
tal_free(ctx);
|
||||||
|
opt_free_table();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("%.*s\n",
|
printf("%.*s\n",
|
||||||
json_tok_len(error), json_tok_contents(resp, error));
|
json_tok_len(error), json_tok_contents(resp, error));
|
||||||
tal_free(ctx);
|
tal_free(ctx);
|
||||||
|
opt_free_table();
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user