Avoid double free in criteria_destroy()

This commit is contained in:
cparm 2022-10-13 14:51:05 +02:00 committed by Simon Ser
parent 7a6afc5199
commit 99fd096d69

View file

@ -97,7 +97,6 @@ void criteria_destroy(struct criteria *criteria) {
#endif #endif
pattern_destroy(criteria->con_mark); pattern_destroy(criteria->con_mark);
pattern_destroy(criteria->workspace); pattern_destroy(criteria->workspace);
free(criteria->workspace);
free(criteria->target); free(criteria->target);
free(criteria->cmdlist); free(criteria->cmdlist);
free(criteria->raw); free(criteria->raw);