Browse Source

* fix double free in filter's flush()

master
Alex 'AdUser' Z 8 years ago
parent
commit
725282febf
  1. 1
      src/filters/pcre.c
  2. 1
      src/filters/preg.c

1
src/filters/pcre.c

@ -194,6 +194,7 @@ flush(cfg_t *cfg) {
pcre_free(r->regex); pcre_free(r->regex);
free(r); free(r);
} }
cfg->regexps = NULL;
} }
void void

1
src/filters/preg.c

@ -159,6 +159,7 @@ flush(cfg_t *cfg) {
regfree(&r->regex); regfree(&r->regex);
free(r); free(r);
} }
cfg->regexps = NULL;
} }
void void

Loading…
Cancel
Save