free dynamically allocated matches

next
Michael Stapelberg 2016-01-09 14:19:00 +01:00
parent 436e4c17b3
commit 8d4bf6c577
2 changed files with 2 additions and 0 deletions

View 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);
}
}

View 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);
}
}
}