diff --git a/cv5/a_train.c b/cv5/a_train.c index 8796d53..280f415 100644 --- a/cv5/a_train.c +++ b/cv5/a_train.c @@ -52,6 +52,7 @@ void cancel_train(struct car* first) { } else if(first->next == NULL){ free(first); + cancel_train(first->next); } }