Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
pollfds = tal_free(pollfds);
fds = NULL;
max_fds = 0;
pollfds = tal_free(pollfds);
fds = NULL;
max_fds = 0;
+ if (num_always == 0) {
+ always = tal_free(always);
+ max_always = 0;
+ }
}
num_fds--;
fd->backend_info = -1;
}
num_fds--;
fd->backend_info = -1;
/* Only free if no fds left either. */
if (num_always == 0 && max_fds == 0) {
/* Only free if no fds left either. */
if (num_always == 0 && max_fds == 0) {
+ always = tal_free(always);