From 7a6afc51995aebea4c78d87d3297806e31a66563 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 10 Oct 2022 09:13:10 +0200 Subject: [PATCH] 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);