diff options
author | 2022-10-13 14:51:05 +0200 | |
---|---|---|
committer | 2022-10-13 14:56:10 +0200 | |
commit | 99fd096d69ce94d29c52414d274deb9e9e25de6b (patch) | |
tree | 59696d47d6f82d029e131f11dd4f2a10b4100491 | |
parent | Fix leaks in criteria_destroy() (diff) | |
download | sway-99fd096d69ce94d29c52414d274deb9e9e25de6b.tar.gz sway-99fd096d69ce94d29c52414d274deb9e9e25de6b.tar.zst sway-99fd096d69ce94d29c52414d274deb9e9e25de6b.zip |
Avoid double free in criteria_destroy()
-rw-r--r-- | sway/criteria.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sway/criteria.c b/sway/criteria.c index 6f97994b..5cc5b8d2 100644 --- a/sway/criteria.c +++ b/sway/criteria.c | |||
@@ -97,7 +97,6 @@ void criteria_destroy(struct criteria *criteria) { | |||
97 | #endif | 97 | #endif |
98 | pattern_destroy(criteria->con_mark); | 98 | pattern_destroy(criteria->con_mark); |
99 | pattern_destroy(criteria->workspace); | 99 | pattern_destroy(criteria->workspace); |
100 | free(criteria->workspace); | ||
101 | free(criteria->target); | 100 | free(criteria->target); |
102 | free(criteria->cmdlist); | 101 | free(criteria->cmdlist); |
103 | free(criteria->raw); | 102 | free(criteria->raw); |