diff --git a/cv5/a_train.c b/cv5/a_train.c index 6acbafc..7cecd41 100644 --- a/cv5/a_train.c +++ b/cv5/a_train.c @@ -40,6 +40,7 @@ void cancel_train(struct car* first) { else if(first->next == NULL){ free(first); first = NULL; + exit(0); } cancel_train(first->next); free(first);