From 763f076b1022d837651d38a2837aac2b7dd205d4 Mon Sep 17 00:00:00 2001 From: Furkan Sahin Date: Mon, 10 Oct 2022 09:13:10 +0200 Subject: Fix leaks in criteria_destroy() --- sway/criteria.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sway/criteria.c b/sway/criteria.c index 97cf667e..6f97994b 100644 --- a/sway/criteria.c +++ b/sway/criteria.c @@ -96,7 +96,9 @@ void criteria_destroy(struct criteria *criteria) { pattern_destroy(criteria->window_role); #endif pattern_destroy(criteria->con_mark); + pattern_destroy(criteria->workspace); free(criteria->workspace); + free(criteria->target); free(criteria->cmdlist); free(criteria->raw); free(criteria); -- cgit v1.2.3