mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-03 18:57:06 +01:00
lightningd: clean up tmpctx on exit before freeing ld.
Fixes: #1866 Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
7e1fd9c38a
commit
94da5c9bd4
1 changed files with 3 additions and 0 deletions
|
@ -475,6 +475,9 @@ int main(int argc, char *argv[])
|
||||||
close(pid_fd);
|
close(pid_fd);
|
||||||
remove(ld->pidfile);
|
remove(ld->pidfile);
|
||||||
|
|
||||||
|
/* FIXME: pay can have children off tmpctx which unlink from
|
||||||
|
* ld->payments, so clean that up. */
|
||||||
|
clean_tmpctx();
|
||||||
tal_free(ld);
|
tal_free(ld);
|
||||||
opt_free_table();
|
opt_free_table();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue