Fix multiple memory leaks with regular expressions.

This commit is contained in:
Ingo Bürk
2015-10-28 14:39:23 +01:00
parent 3295e05089
commit 27db61f504
4 changed files with 10 additions and 9 deletions

View File

@ -29,6 +29,7 @@ CFGFUN(criteria_init, int _state) {
criteria_next_state = _state;
DLOG("Initializing criteria, current_match = %p, state = %d\n", current_match, _state);
match_free(current_match);
match_init(current_match);
}