free dynamically allocated matches
This commit is contained in:
parent
436e4c17b3
commit
8d4bf6c577
|
@ -87,6 +87,7 @@ static int json_end_map(void *ctx) {
|
||||||
Match *match = TAILQ_FIRST(&(json_node->swallow_head));
|
Match *match = TAILQ_FIRST(&(json_node->swallow_head));
|
||||||
TAILQ_REMOVE(&(json_node->swallow_head), match, matches);
|
TAILQ_REMOVE(&(json_node->swallow_head), match, matches);
|
||||||
match_free(match);
|
match_free(match);
|
||||||
|
free(match);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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));
|
Match *first = TAILQ_FIRST(&(nc->swallow_head));
|
||||||
TAILQ_REMOVE(&(nc->swallow_head), first, matches);
|
TAILQ_REMOVE(&(nc->swallow_head), first, matches);
|
||||||
match_free(first);
|
match_free(first);
|
||||||
|
free(first);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue