mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-04 23:04:35 +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:
committed by
Christian Decker
parent
7e1fd9c38a
commit
94da5c9bd4
@@ -475,6 +475,9 @@ int main(int argc, char *argv[])
|
||||
close(pid_fd);
|
||||
remove(ld->pidfile);
|
||||
|
||||
/* FIXME: pay can have children off tmpctx which unlink from
|
||||
* ld->payments, so clean that up. */
|
||||
clean_tmpctx();
|
||||
tal_free(ld);
|
||||
opt_free_table();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user