From: Rusty Russell Date: Thu, 29 Dec 2016 04:31:32 +0000 (+1030) Subject: io: allow freeing of io_conn at any time. X-Git-Url: https://git.ozlabs.org/?a=commitdiff_plain;h=31c816a6a9a2037d8860d56814835d9ac488d52f;hp=31c816a6a9a2037d8860d56814835d9ac488d52f;p=ccan io: allow freeing of io_conn at any time. 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 ---