Free match after criteria initialization
This memory leak is associated with matching by a criteria that uses a regular expression. Without freeing a regex before calling match_init, it will definitely be lost.
This commit is contained in:
parent
85df107b0d
commit
587273505c
|
@ -257,6 +257,7 @@ void cmd_criteria_init(I3_CMD) {
|
|||
owindow *ow;
|
||||
|
||||
DLOG("Initializing criteria, current_match = %p\n", current_match);
|
||||
match_free(current_match);
|
||||
match_init(current_match);
|
||||
while (!TAILQ_EMPTY(&owindows)) {
|
||||
ow = TAILQ_FIRST(&owindows);
|
||||
|
|
Loading…
Reference in New Issue