summaryrefslogtreecommitdiff
path: root/common/loop.c
diff options
context:
space:
mode:
authorIan Fan <[email protected]>2018-12-09 01:15:23 +0000
committerIan Fan <[email protected]>2018-12-09 01:15:38 +0000
commit98c1e19466c0d83c8e1ca86eda5b273eda7eff3c (patch)
treeb47ccc174669786e3a1df9569046886c23003a45 /common/loop.c
parentc8776fac4232f9faab0a78ef3e18dc4366496421 (diff)
list.c: rename free_flat_list to list_free_items_and_destroy
Diffstat (limited to 'common/loop.c')
-rw-r--r--common/loop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/loop.c b/common/loop.c
index ad2b4a64..295f3a30 100644
--- a/common/loop.c
+++ b/common/loop.c
@@ -45,8 +45,8 @@ struct loop *loop_create(void) {
}
void loop_destroy(struct loop *loop) {
- free_flat_list(loop->fd_events);
- free_flat_list(loop->timers);
+ list_free_items_and_destroy(loop->fd_events);
+ list_free_items_and_destroy(loop->timers);
free(loop->fds);
free(loop);
}