From a086f9f6e8a8f99c8350eb00345ce349aee22a3a Mon Sep 17 00:00:00 2001 From: c9s Date: Tue, 20 May 2014 16:16:36 +0800 Subject: [PATCH] Fix memory allocation --- src/node.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/node.c b/src/node.c index 9417da6..823e8f8 100644 --- a/src/node.c +++ b/src/node.c @@ -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;