From 491038209050cbce062920948e9462550e8c4406 Mon Sep 17 00:00:00 2001 From: Pedro Date: Sat, 17 May 2014 15:16:52 +0800 Subject: [PATCH] Update node.c Fix --- src/node.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node.c b/src/node.c index fa91ebd..be02d25 100644 --- a/src/node.c +++ b/src/node.c @@ -421,7 +421,7 @@ node * r3_tree_insert_pathn(node *tree, char *route, int route_len, void * route r3_tree_append_edge(e->child, e2); // truncate the original edge pattern - free(e->pattern); + e->pattern = strndup(e->pattern, dl); e->pattern_len = dl;