Fix memory allocation
This commit is contained in:
parent
e2bf5d5177
commit
a086f9f6e8
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue