seems like pcre_free_study is not defined on older ubuntu

This commit is contained in:
c9s 2014-05-21 18:26:08 +08:00
parent 82ea09e146
commit 946bac8f3c
2 changed files with 5 additions and 0 deletions

View file

@ -79,9 +79,11 @@ void r3_tree_free(node * tree) {
if (tree->pcre_pattern) { if (tree->pcre_pattern) {
pcre_free(tree->pcre_pattern); pcre_free(tree->pcre_pattern);
} }
/*
if (tree->pcre_extra) { if (tree->pcre_extra) {
pcre_free_study(tree->pcre_extra); pcre_free_study(tree->pcre_extra);
} }
*/
if (tree->combined_pattern) if (tree->combined_pattern)
zfree(tree->combined_pattern); zfree(tree->combined_pattern);
if (tree->ov) if (tree->ov)
@ -208,9 +210,11 @@ void r3_tree_compile_patterns(node * n) {
if (n->pcre_pattern) { if (n->pcre_pattern) {
pcre_free(n->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);
} }
*/
n->pcre_pattern = pcre_compile( n->pcre_pattern = pcre_compile(
n->combined_pattern, /* the pattern */ n->combined_pattern, /* the pattern */
option_bits, /* default options */ option_bits, /* default options */

View file

@ -444,3 +444,4 @@
1400666823,6406965.25 1400666823,6406965.25
1400666950,6684744.95 1400666950,6684744.95
1400667091,6771202.47 1400667091,6771202.47
1400667800,6695271.95

1 1400242718 5649455.80
444 1400666823 6406965.25
445 1400666950 6684744.95
446 1400667091 6771202.47
447 1400667800 6695271.95