--- libev/ev_select.c 2007/11/04 00:24:17 1.11 +++ libev/ev_select.c 2007/11/04 15:58:50 1.12 @@ -128,6 +128,22 @@ 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); +} + +