mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 08:54:38 +09:00
winpr: SetWaitableTimer should not free the handle if it fails
This commit is contained in:
committed by
akallabeth
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
|
||||
|
||||
Reference in New Issue
Block a user