mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-23 17:14:22 +01:00
cli/lightning-cli: free eveything on exit.
It's not required, but it means valgrind won't complain about leaks. Suggested-by: @m-schmoock Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -604,6 +604,8 @@ int main(int argc, char *argv[])
|
||||
tal_free(rpc_filename);
|
||||
tal_free(ctx);
|
||||
opt_free_table();
|
||||
free(resp);
|
||||
free(toks);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -618,5 +620,7 @@ int main(int argc, char *argv[])
|
||||
tal_free(rpc_filename);
|
||||
tal_free(ctx);
|
||||
opt_free_table();
|
||||
free(resp);
|
||||
free(toks);
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user