From dc61d5453095708acb1ba3a969bf0fba7f2ebfaa Mon Sep 17 00:00:00 2001 From: c9s Date: Wed, 4 Jun 2014 16:01:19 +0800 Subject: [PATCH] free tree2 --- tests/bench.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/bench.c b/tests/bench.c index f73127c..86b98c9 100644 --- a/tests/bench.c +++ b/tests/bench.c @@ -456,7 +456,7 @@ r3_tree_insert_path(n, "/garply/grault/corge", NULL); BENCHMARK(str_match_entry) match_entry * e = match_entry_createl("/qux/bar/corge", strlen("/qux/bar/corge") ); r3_tree_match_entry(n , e); - zfree(e); + match_entry_free(e); END_BENCHMARK(str_match_entry) BENCHMARK_SUMMARY(str_match_entry); @@ -470,6 +470,10 @@ r3_tree_insert_path(n, "/garply/grault/corge", NULL); END_BENCHMARK(pcre_dispatch) BENCHMARK_SUMMARY(pcre_dispatch); + BENCHMARK_RECORD_CSV("bench_str.csv", 4, BR(str_dispatch), BR(pcre_dispatch), BR(tree_compile), BR(str_match_entry) ); + + r3_tree_free(tree2); + r3_tree_free(n); return 0; }