aboutsummaryrefslogtreecommitdiff
path: root/sway
diff options
context:
space:
mode:
Diffstat (limited to 'sway')
-rw-r--r--sway/criteria.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sway/criteria.c b/sway/criteria.c
index 294b2922..286ccc3b 100644
--- a/sway/criteria.c
+++ b/sway/criteria.c
@@ -417,10 +417,9 @@ static void unescape(char *value) {
* criteria struct.
*
* If errors are found, NULL will be returned and the error argument will be
- * populated with an error string.
+ * populated with an error string. It is up to the caller to free the error.
*/
struct criteria *criteria_parse(char *raw, char **error_arg) {
- free(error);
error = NULL;
char *head = raw;