* src/util/event_poll.c: avoid file descriptors leak when
virEventPollAddHandle fail on virEventPollInit function.
#include "event_poll.h"
#include "memory.h"
#include "util.h"
+#include "files.h"
#include "ignore-value.h"
#include "virterror_internal.h"
virEventError(VIR_ERR_INTERNAL_ERROR,
_("Unable to add handle %d to event loop"),
eventLoop.wakeupfd[0]);
+ VIR_FORCE_CLOSE(eventLoop.wakeupfd[0]);
+ VIR_FORCE_CLOSE(eventLoop.wakeupfd[1]);
return -1;
}