Fix memory allocation

This commit is contained in:
c9s 2014-05-20 16:16:36 +08:00
parent e2bf5d5177
commit a086f9f6e8

View file

@ -30,6 +30,11 @@ node * r3_tree_create(int cap) {
n->edges = (edge**) malloc( sizeof(edge*) * cap );
n->edge_len = 0;
n->edge_cap = cap;
n->routes = NULL;
n->route_len = 0;
n->route_cap = 0;
n->endpoint = 0;
n->combined_pattern = NULL;
n->pcre_pattern = NULL;