i3-config-wizard: fix small memleak

next
Orestis Floros 2018-08-25 14:49:28 +03:00
parent 4cba9fcbda
commit a8b90317a0
No known key found for this signature in database
GPG Key ID: E9AD9F32E401E38F
1 changed files with 1 additions and 0 deletions

View File

@ -293,6 +293,7 @@ static char *next_state(const cmdp_token *token) {
}
sasprintf(&res, "bindsym %s%s%s %s%s\n", (modifiers == NULL ? "" : modrep), (modifiers == NULL ? "" : "+"), str, (release == NULL ? "" : release), get_string("command"));
clear_stack();
free(modrep);
return res;
}