From 017fa63d8c641e10b79971e1580f5f6a095c1b45 Mon Sep 17 00:00:00 2001 From: c9s Date: Mon, 19 May 2014 10:53:47 +0800 Subject: [PATCH] show people how to release the tree --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 2ccd059..aa94fd6 100644 --- a/README.md +++ b/README.md @@ -60,6 +60,9 @@ if (matched_node) { matched_node->endpoint; // make sure there is a route end at here. 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,