diff --git a/cv7/program.c b/cv7/program.c index 9b3f929..3c7eabe 100644 --- a/cv7/program.c +++ b/cv7/program.c @@ -42,6 +42,13 @@ struct tree* load_tree() { destroy_tree(node); return NULL; } + } else { + struct tree* extra = read_tree(); + if (extra) { + free(extra); + destroy_tree(node); + return NULL; + } } return node; @@ -49,6 +56,7 @@ struct tree* load_tree() { + void run_tree(struct tree* tree) { if (!tree) { return; @@ -115,3 +123,4 @@ int main() { return 0; } +