Removed redundant code

In the switch-case block in new_manager()
Fixed a small bug in vendor/ev.c

Removed calling glibc realloc(3) snippet as the latest libev dose.
Fixed a bug in ev.c involved by last commit