list.c: rename free_flat_list to list_free_items_and_destroy

This commit is contained in:
Ian Fan 2018-12-09 01:15:23 +00:00
parent c8776fac42
commit 98c1e19466
12 changed files with 20 additions and 20 deletions

View file

@ -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);
}