aboutsummaryrefslogtreecommitdiff
path: root/common/loop.c
diff options
context:
space:
mode:
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);
}