diff --git a/cv8/program.c b/cv8/program.c index 02a5b6d..9abec59 100644 --- a/cv8/program.c +++ b/cv8/program.c @@ -77,7 +77,7 @@ struct tree* find_minimum(struct tree *root){ struct tree* destroy_tree(struct tree* root){ if(root == NULL) return; - if(root->left == NULL && root->right == NULL){ + /*if(root->left == NULL && root->right == NULL){ free(root); return NULL; } @@ -95,7 +95,7 @@ struct tree* destroy_tree(struct tree* root){ struct tree* this = find_minimum(root->left); strcpy(root->value, this->value); root->right = destroy_tree(root->right); - } + }*/ root->left = destroy_tree(root->left); root->right = destroy_tree(root->right); free(root);