while (in->first) {
list_remove(in);
}
+ free(in);
}
static const struct lws_http_mount mount = {
void mt_server_deinit(mt_server_t *self)
{
- list_deinit((list *)protocols[PROTOCOL_MERICA_TERMINAL].user);
+ free_line(self->fd_watcher.text);
+ list_deinit(self->fd_watcher.lines);
lws_context_destroy(self->context);
}
ev_run(loop, 0);
mt_server_deinit(&server);
+ ev_loop_destroy(loop);
return 0;
}