From: Orestis Floros Date: Sun, 25 Mar 2018 17:04:31 +0000 (+0300) Subject: startup.c: free timer X-Git-Tag: 4.16~115^2~3 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ee1f5511955316e6e6abdcaad427bc41cf8d53f0;p=i3%2Fi3 startup.c: free timer Small memleak. The timer is not called used again since ev_timer_init is called with repeat = 0. --- 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; }