show people how to release the tree

This commit is contained in:
c9s 2014-05-19 10:53:47 +08:00
parent 8ba1230610
commit 017fa63d8c

View file

@ -60,6 +60,9 @@ if (matched_node) {
matched_node->endpoint; // make sure there is a route end at here. matched_node->endpoint; // make sure there is a route end at here.
int ret = *( (*int) matched_node->route_ptr ); int ret = *( (*int) matched_node->route_ptr );
} }
// release the tree
r3_tree_free(n);
``` ```
If you want to capture the variables from regular expression, you will need to create a match entry, If you want to capture the variables from regular expression, you will need to create a match entry,