diff --git a/cv5/a_train.c b/cv5/a_train.c index a4318f1..5941132 100644 --- a/cv5/a_train.c +++ b/cv5/a_train.c @@ -43,8 +43,8 @@ void cancel_train(struct car* first) { return; } if(first->next != NULL){ - cancel_train(first->next); first->next = NULL; + cancel_train(first->next); } else if(first->next == NULL){ free(first);