commit 39007fc30fa3619f14087d138acb8a49114631c3
parent bffcb496cc002d9c8a41285eaabd908b322a9c99
Author: Ryan Dwyer <ryandwyer1@gmail.com>
Date: Sun, 13 May 2018 08:47:22 +1000
Fix double free in criteria
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git 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;