This commit is contained in:
Maryna Kravtsova 2020-10-26 19:17:31 +01:00
parent ef3244ad56
commit 386b1cebca

View File

@ -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);