summaryrefslogtreecommitdiff
path: root/sysdep/unix
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2023-04-20 21:08:38 +0200
committerMaria Matejka <mq@ucw.cz>2023-04-22 20:49:58 +0200
commit1141ce4e2d924f29e6e31ccf5e325f870c8895dd (patch)
tree4d985af0d0008ca3468c614f157ef92f50b7df49 /sysdep/unix
parentb3f805ce29487f790090fcf31096f5a7cf1d585d (diff)
Resource pool closing has its dedicated function
Diffstat (limited to 'sysdep/unix')
-rw-r--r--sysdep/unix/io-loop.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sysdep/unix/io-loop.c b/sysdep/unix/io-loop.c
index efb408e0..8481bb6e 100644
--- a/sysdep/unix/io-loop.c
+++ b/sysdep/unix/io-loop.c
@@ -746,7 +746,7 @@ bird_thread_cleanup(void *_thr)
pthread_attr_destroy(&thr->thread_attr);
/* Free all remaining memory */
- rfree(thr->pool);
+ rp_free(thr->pool);
}
static struct bird_thread *
@@ -839,7 +839,7 @@ bird_thread_shutdown(void * _ UNUSED)
/* Stop the meta loop */
birdloop_leave(thr->meta);
domain_free(thr->meta->time.domain);
- rfree(thr->meta->pool);
+ rp_free(thr->meta->pool);
/* Local pages not needed anymore */
flush_local_pages();
@@ -990,7 +990,7 @@ bird_thread_show(void *data)
cli_write_trigger(tsd->cli);
DOMAIN_FREE(control, tsd->lock);
- rfree(tsd->pool);
+ rp_free(tsd->pool);
the_bird_unlock();
}
@@ -1258,7 +1258,7 @@ birdloop_free(struct birdloop *loop)
ASSERT_DIE(loop->thread == NULL);
domain_free(loop->time.domain);
- rfree(loop->pool);
+ rp_free(loop->pool);
}
static void