This commit is contained in:
Maryna Kravtsova 2020-10-27 16:42:57 +01:00
parent 5b3d26ec92
commit 7be122a19c

View File

@ -39,7 +39,7 @@ void cancel_train(struct car* first) {
} }
if(first->next == NULL){ if(first->next == NULL){
struct car *this = first; struct car *this = first;
first = fitst->next; first = first->next;
free(this); free(this);
exit(0); exit(0);
} }