uev_event_init() leaks its eventfd, and leaves it in the watcher, when the watcher cannot be added to the event loop. Close it and reset the descriptor in the watcher.