diff --git a/src/node.c b/src/node.c index 6ae8ef2..a3f5858 100644 --- a/src/node.c +++ b/src/node.c @@ -48,6 +48,7 @@ node * r3_tree_create(int cap) { CHECK_PTR(n); n->edges = (edge**) zmalloc( sizeof(edge*) * cap ); + CHECK_PTR(n->edges); n->edge_len = 0; n->edge_cap = cap;