winpr: SetWaitableTimer should not free the handle if it fails
This commit is contained in:
parent
e16bef6b4f
commit
f92e941129
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user