Allocates the memory of epoll events dynamically