winpr: SetWaitableTimer should not free the handle if it fails

This commit is contained in:
Kobi Mizrachi 2019-12-17 10:17:11 +02:00 committed by akallabeth
parent e16bef6b4f
commit f92e941129

View File

@ -241,10 +241,7 @@ static int InitializeWaitableTimer(WINPR_TIMER* timer)
timer->fd = timerfd_create(CLOCK_MONOTONIC, TFD_NONBLOCK);
if (timer->fd <= 0)
{
free(timer);
return -1;
}
#elif defined(__APPLE__)
#else