diff --git a/fs/vfs/fs_epoll.c b/fs/vfs/fs_epoll.c index 0e179cec6f..3214207b73 100644 --- a/fs/vfs/fs_epoll.c +++ b/fs/vfs/fs_epoll.c @@ -192,6 +192,7 @@ static int epoll_do_close(FAR struct file *filep) list_for_every_entry_safe(&eph->extend, epn, tmp, epoll_node_t, node) { + list_delete(&epn->node); kmm_free(epn); }