]> git.sur5r.net Git - i3/i3/commitdiff
startup.c: free timer
authorOrestis Floros <orestisf1993@gmail.com>
Sun, 25 Mar 2018 17:04:31 +0000 (20:04 +0300)
committerOrestis Floros <orestisf1993@gmail.com>
Sun, 25 Mar 2018 17:04:31 +0000 (20:04 +0300)
Small memleak. The timer is not called used again since ev_timer_init is
called with repeat = 0.

src/startup.c

index 166842e07c04e8471123ec331012837ffe189220..1e733fcb8670399abf991954d368d7df869f904a 100644 (file)
@@ -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;
     }