From f92e941129d5cb2c484bfee7ddf5931c3a3d47b2 Mon Sep 17 00:00:00 2001 From: Kobi Mizrachi Date: Tue, 17 Dec 2019 10:17:11 +0200 Subject: [PATCH] winpr: SetWaitableTimer should not free the handle if it fails --- winpr/libwinpr/synch/timer.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/winpr/libwinpr/synch/timer.c b/winpr/libwinpr/synch/timer.c index 255d7f954..d781a988f 100644 --- a/winpr/libwinpr/synch/timer.c +++ b/winpr/libwinpr/synch/timer.c @@ -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