]> git.sur5r.net Git - i3/i3/blobdiff - src/manage.c
Fix multiple memory leaks with regular expressions.
[i3/i3] / src / manage.c
index 5cfe490ec2746ab4540e1dcc597940f991bc33fd..0dec28443906c3a209342d6e0a3cb25d8479e8ee 100644 (file)
@@ -294,6 +294,7 @@ void manage_window(xcb_window_t window, xcb_get_window_attributes_cookie_t cooki
         if (match != NULL && match->insert_where != M_BELOW) {
             DLOG("Removing match %p from container %p\n", match, nc);
             TAILQ_REMOVE(&(nc->swallow_head), match, matches);
+            match_free(match);
         }
     }