This commit is contained in:
c9s 2014-05-21 18:20:48 +08:00
parent 238aee085f
commit 175b594234

View file

@ -205,8 +205,8 @@ void r3_tree_compile_patterns(node * n) {
int erroffset; int erroffset;
unsigned int option_bits = 0; unsigned int option_bits = 0;
if (tree->pcre_pattern) { if (n->pcre_pattern) {
pcre_free(tree->pcre_pattern); pcre_free(n->pcre_pattern);
} }
if (n->pcre_extra) { if (n->pcre_extra) {
pcre_free_study(n->pcre_extra); pcre_free_study(n->pcre_extra);