X-Git-Url: https://git.llucax.com/software/libev.git/blobdiff_plain/678c8c54d0ce967d8f1db3e575aed61879279975..6f16328ecec5b9add341be4e60ed9eeaa3adea67:/ev_select.c?ds=sidebyside diff --git a/ev_select.c b/ev_select.c index 5738fe5..327c313 100644 --- a/ev_select.c +++ b/ev_select.c @@ -128,6 +128,22 @@ select_init (EV_P_ int flags) method_modify = select_modify; method_poll = select_poll; + vec_max = 0; + vec_ri = 0; + vec_ri = 0; + vec_wo = 0; + vec_wo = 0; + return EVMETHOD_SELECT; } +static void +select_destroy (EV_P) +{ + free (vec_ri); + free (vec_ro); + free (vec_wi); + free (vec_wo); +} + +