From 175b5942348289494b7915d133f7c0beead2e54b Mon Sep 17 00:00:00 2001 From: c9s Date: Wed, 21 May 2014 18:20:48 +0800 Subject: [PATCH] Fix --- src/node.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/node.c b/src/node.c index 33de25d..705f87a 100644 --- a/src/node.c +++ b/src/node.c @@ -205,8 +205,8 @@ void r3_tree_compile_patterns(node * n) { int erroffset; unsigned int option_bits = 0; - if (tree->pcre_pattern) { - pcre_free(tree->pcre_pattern); + if (n->pcre_pattern) { + pcre_free(n->pcre_pattern); } if (n->pcre_extra) { pcre_free_study(n->pcre_extra);