]> git.sur5r.net Git - i3/i3/commitdiff
free dynamically allocated matches
authorMichael Stapelberg <michael@stapelberg.de>
Sat, 9 Jan 2016 13:19:00 +0000 (14:19 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Sat, 9 Jan 2016 16:06:58 +0000 (17:06 +0100)
src/load_layout.c
src/manage.c

index 33435236117ef832a830a7bbbace07c1548cdd56..173e573b775f0cb9090a712f125d0ac4b9f3826b 100644 (file)
@@ -87,6 +87,7 @@ static int json_end_map(void *ctx) {
                 Match *match = TAILQ_FIRST(&(json_node->swallow_head));
                 TAILQ_REMOVE(&(json_node->swallow_head), match, matches);
                 match_free(match);
+                free(match);
             }
         }
 
index 05ac15f052960ed5ed83b3023eb3fce4c007a366..d6a8c6d3b36570543d7e611bcdfa308629516f21 100644 (file)
@@ -304,6 +304,7 @@ void manage_window(xcb_window_t window, xcb_get_window_attributes_cookie_t cooki
                 Match *first = TAILQ_FIRST(&(nc->swallow_head));
                 TAILQ_REMOVE(&(nc->swallow_head), first, matches);
                 match_free(first);
+                free(first);
             }
         }
     }