Update node.c

Fix
This commit is contained in:
Pedro 2014-05-17 15:16:52 +08:00
parent 6c0b3c3e90
commit 4910382090

View file

@ -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;