From ee1f5511955316e6e6abdcaad427bc41cf8d53f0 Mon Sep 17 00:00:00 2001 From: Orestis Floros Date: Sun, 25 Mar 2018 20:04:31 +0300 Subject: [PATCH] startup.c: free timer Small memleak. The timer is not called used again since ev_timer_init is called with repeat = 0. --- src/startup.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/startup.c b/src/startup.c index 166842e0..1e733fcb 100644 --- a/src/startup.c +++ b/src/startup.c @@ -49,6 +49,7 @@ static void startup_timeout(EV_P_ ev_timer *w, int revents) { if (!sequence) { DLOG("Sequence already deleted, nevermind.\n"); + free(w); return; } -- 2.39.5