diff --git a/src/load_layout.c b/src/load_layout.c index 33435236..173e573b 100644 --- a/src/load_layout.c +++ b/src/load_layout.c @@ -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); } } diff --git a/src/manage.c b/src/manage.c index 05ac15f0..d6a8c6d3 100644 --- a/src/manage.c +++ b/src/manage.c @@ -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); } } }