mirror of
https://github.com/gwenhael-le-moine/sway-patched-tray-menu.git
synced 2024-12-27 21:58:16 +01:00
Fix double free in criteria
This commit is contained in:
parent
bffcb496cc
commit
39007fc30f
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue