This commit is contained in:
Maryna Kravtsova 2020-10-26 19:16:19 +01:00
parent c61348f541
commit ef3244ad56

View File

@ -38,8 +38,8 @@ void cancel_train(struct car* first) {
exit(0);
}
else if(first->next == NULL){
free(first->next);
//exit(0);
free(first);
first = NULL;
}
cancel_train(first->next);
free(first);