libpcre does not use zmalloc

This commit is contained in:
c9s 2014-05-21 18:09:14 +08:00
parent c281619b57
commit 7d288404c7
2 changed files with 8 additions and 2 deletions

View file

@ -75,12 +75,14 @@ void r3_tree_free(node * tree) {
zfree(tree->edges);
if (tree->routes)
zfree(tree->routes);
if (tree->combined_pattern)
zfree(tree->combined_pattern);
/*
if (tree->pcre_pattern)
zfree(tree->pcre_pattern);
if (tree->pcre_extra)
zfree(tree->pcre_extra);
*/
if (tree->combined_pattern)
zfree(tree->combined_pattern);
if (tree->ov)
zfree(tree->ov);
zfree(tree);
@ -203,10 +205,12 @@ void r3_tree_compile_patterns(node * n) {
int erroffset;
unsigned int option_bits = 0;
/*
if (n->pcre_pattern)
zfree(n->pcre_pattern);
if (n->pcre_extra)
zfree(n->pcre_extra);
*/
// n->pcre_pattern;
n->pcre_pattern = pcre_compile(

View file

@ -441,3 +441,5 @@
1400655532,6648299.49
1400655542,6685928.45
1400659046,19754150.71
1400666823,6406965.25
1400666950,6684744.95

1 1400242718 5649455.80
441 1400655532 6648299.49
442 1400655542 6685928.45
443 1400659046 19754150.71
444 1400666823 6406965.25
445 1400666950 6684744.95