]> git.ozlabs.org Git - ccan/commitdiff
io: allow freeing of io_conn at any time.
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 29 Dec 2016 04:31:32 +0000 (15:01 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 29 Dec 2016 23:12:44 +0000 (09:42 +1030)
io_close() currently marks the io_conn for freeing, but doesn't
actually do it.  This is a problem for tal() users, because we can't
just call it in the parent's constructor.

Make io_close() just tal_free() + return &io_conn_freed (a magic
io_plan pointer).

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>

No differences found